You are not logged in.
Announcement
Unanswered posts
|
Pages: 1

Is it possible to have loops for different segment in the same level
Example:
<empolyee>
<details> .................................................................loop1
<detail1>
<attribue1>abc</attribute1>
<attribue2>abc</attribute2>
<attribue3>abc</attribute3>
</detail1>
<detail2>
<attribue1>abc</attribute1>
<attribue2>abc</attribute2>
<attribue3>abc</attribute3>
</detail2>
.......
....... etc
<detail100>
<attribue1>abc</attribute1>
<attribue2>abc</attribute2>
<attribue3>abc</attribute3>
</detail100>
</details>
<items>------------------------------------------loop2
<item1>
<attribue1>abc</attribute1>
<attribue2>abc</attribute2>
<attribue3>abc</attribute3>
<item1>
<item2>
<attribue1>abc</attribute1>
<attribue2>abc</attribute2>
<attribue3>abc</attribute3>
<item2>
......
....... etc
<item100>
<attribue1>abc</attribute1>
<attribue2>abc</attribute2>
<attribue3>abc</attribute3>
<item100>
<items>
</empolyee>
details and items are two segments in same level and is it possible to have loops for both at same time
Thanks
Jjoseph
Offline

My obective is to create an XML as mentioned above from another xml, Issue ia m facing is i can gerenerate the xml using tfileoutxml components only if one loop in one level, ie i can do loop1 alone in the above example , not loop1 and loop2 together, Please advice me resolve this issue
Offline
Hi
With 'append the source xml file' option on tAdvancedFileOutputXML can fit your need, output the first segments to a xml file for first time and then append the second segments to existing xml file.
Best regards
Shong
Offline
Pages: 1