Hi All,
I have a requirement where I need to construct an xml by pulling the data from the database tables. The table has 2 fields ( eg: kit and sku).
It will have values like below:
[TABLE=“width: 96”]
[TR]
[TD=“width: 64, bgcolor: transparent”] kit[/TD]
[TD=“width: 64, bgcolor: transparent”] sku[/TD]
[/TR]
[TR]
[TD=“bgcolor: transparent, align: right”]1[/TD]
[TD=“bgcolor: transparent, align: right”]25[/TD]
[/TR]
[TR]
[TD=“bgcolor: transparent, align: right”]1[/TD]
[TD=“bgcolor: transparent, align: right”]26[/TD]
[/TR]
[TR]
[TD=“bgcolor: transparent, align: right”]1[/TD]
[TD=“bgcolor: transparent, align: right”]30[/TD]
[/TR]
[TR]
[TD=“bgcolor: transparent, align: right”]2[/TD]
[TD=“bgcolor: transparent, align: right”]34[/TD]
[/TR]
[TR]
[TD=“bgcolor: transparent, align: right”]2[/TD]
[TD=“bgcolor: transparent, align: right”]35[/TD]
[/TR]
[/TABLE]
Now, I have constructed the xml as below:
The xml looks like this
25
26
30
34
35
instead of this
25
26
30
34
35
Please let me know the logic how to take the “kit” in the table as primary value and loop over the document.
Thanks in advance.
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB