Forum Discussion
Hi,
> [...] the first step is to generate the XML
https://www.google.com/search?q=groovy+create+xml
http://mrhaki.blogspot.com/2009/10/groovy-goodness-creating-xml-with.html
Does this help?
- SuperSingh7 years agoContributor
Thanks for replying. But the following is my expected output.
Also, please note I am trying to pick the nodes from excel input.Any inputs in that direction will be of great help for me to explore further.
<?xml version="1.0" encoding="UTF-8"?>
<program xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:lp="http://www.someurl1.org/2001/XMLSchema-instance">
<un:document_version>1</un:document_version>
<un:index_version>1</un:index_version>
<un:customer_info>
<un:id>User14</un:id>
<un:org>XYZ_Org</un:org>
<un:firstname>Jack</un:firstname>
<un:lastname>Mike</un:lastname>
<un:extra>
<un:city>Dallas</un:city>
</un:extra>
</un:customer_info>
<un:settings>
<un:temperature units="celsius">37</un:temperature>
<un:extra>
<lp:count size="3">
<lp:round round_id="1">
<lp:volume units="mL">170</lp:volume>
</lp:round>
<lp:round round_id="2">
<lp:volume units="mL">100</lp:volume>
<lp:time units="s">1500</lp:time>
</lp:round>
</lp:round>
<lp:round round_id="3">
<lp:volume units="mL">10</lp:volume>
</lp:round>
</lp:count>
</un:extra>
<un:input1>
</un:input1>
<un:input2>
</un:input2>
</program>
Related Content
- 5 years ago
- 4 years ago
- 5 years ago
Recent Discussions
- 22 days ago