Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Handling Repeating xml tags through XML Parser in Cobol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Gurumanoj Gurusamy

New User


Joined: 11 Nov 2010
Posts: 22
Location: Mumbai

PostPosted: Sat Nov 12, 2011 4:39 pm    Post subject: Handling Repeating xml tags through XML Parser in Cobol
Reply with quote

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
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Sat Nov 12, 2011 4:50 pm    Post subject: Reply to: Handling Repeating xml tags through XML Parser in
Reply with quote

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
View user's profile Send private message
Gurumanoj Gurusamy

New User


Joined: 11 Nov 2010
Posts: 22
Location: Mumbai

PostPosted: Sat Nov 12, 2011 5:00 pm    Post subject: Hi, Thanks for your response
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Sat Nov 12, 2011 5:05 pm    Post subject: Reply to: Handling Repeating xml tags through XML Parser in
Reply with quote

a quick and dirty google search with cobol xml repeating tags
would have given quite a few links one of which is
http://publib.boulder.ibm.com/infocenter/ratdevz/v8r0/index.jsp?topic=/com.ibm.etools.est.doc/topics/axmlena11.html

should be enough to proceed onYour own
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us