View previous topic :: View next topic
|
Author |
Message |
Gurumanoj Gurusamy
New User
Joined: 11 Nov 2010 Posts: 22 Location: Mumbai
|
|
|
|
Hi,
I am creating a program in which given xml tags value need to be the output.
In cobol using xml parser I have created the program but its only working for non repeating tags. Whenever I provide repeating xml tag as input, Its providing the first occurence value.
Kindly let me know how I can handle repeating xml tag. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Not much to go on.
Can you give some examples of your input (both variants), the tags you expect, and the code you are using? |
|
Back to top |
|
|
Gurumanoj Gurusamy
New User
Joined: 11 Nov 2010 Posts: 22 Location: Mumbai
|
|
|
|
My Input xml has <SystemID> and <Endorsement> in which SystemId is a non repeating tag and <Endorsement> repeats n times.
For example xml looks like,
.
.
.
<SystemID>xxxxx</SystemID>
<EndorsementDetails>
<Endorsement>zzzzzz</Endorsement>
<Endorsement>yyyyy</Endorsement>
<Endorsement>wwwww</Endorsement>
</EndorsementDetails>
.
.
.
For above case, If I provide SystemID as input to program its returning corect value xxxxx but for Endorsement space is comming in he output
Hope it helps!
Thanks |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
|