Menu

#7 Serving XMl Loops

open
nobody
5
2010-08-05
2010-08-05
Ram
No

HI Daniel,

i have requirement like XML to Flat Conversion , i am good with multiple loops in same range
but my requirement is loop under another loop

i tried using two <sx:onSubtree> tags , the output is giving result, the order is giving wrong ...

for Eaxmple :

Input Xml File

<List>
<Ram>
<field1>JACK</field1>
<field2>DANIEL</field2>
</Ram>
<KAL>
<field3>DAVID</field3>
<field4>SMITH</field4>
</KAL>
<RAGHU>
<SAN>
<field5>RALPH</field5>
<field6>MAN</field6>
</SAN>
<JOHN>
<field5>COOKIE</field5>
<field6>DRINK</field6>
</JOHN>
<SAN>
<field5>JOHN</field5>
<field6>BLATZEL</field6>
</SAN>
<JOHN>
<field5>CANDY</field5>
<field6>ICETEA</field6>
</JOHN>
</RAGHU>
</LIST>

Output : Expecting

JACK DANIEL
DAVID SMITH
RALPH MAN
COOKIE DRINK
JOHN BLATZEL
CANDY ICETEA

please help me out how can i make serving xml loops

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.