IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

XML-TEXT getting data in pieces


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
abhishek chhawcharia

New User


Joined: 21 Mar 2009
Posts: 10
Location: Ohio

PostPosted: Fri May 23, 2014 9:59 pm
Reply with quote

Hi All,

I am doing parsing of a XML in my cobol program and checking for each tag being returned back from the services.

My program is expecting the tag to be as "COVG_BLOCK_FORM_EDITION_DATE" but when I displayed the XML-TEXT that my program is getting, it shows that as XML-TEXT as COVG_BLOCK_FO once and second time, it comes as RM_EDITION_DATE.

So how to handle this situation??

Appreciate any help in this regard.


Abhishek
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri May 23, 2014 10:07 pm
Reply with quote

What does the data look like?
Back to top
View user's profile Send private message
abhishek chhawcharia

New User


Joined: 21 Mar 2009
Posts: 10
Location: Ohio

PostPosted: Fri May 23, 2014 10:34 pm
Reply with quote

I checked the data and here are the details.

When XML-EVENT = 'START-OF-ELEMENT', XML-TEXT is coming to me as itemName as expected and the CONTENT-CHARACTERS are coming as COVG_BLOCK_FO and then again next XML-EVENT = 'START-OF-ELEMENT' and the XML-TEXT is coming as itemName and the CONTENT-CHARACTERS are coming as RM_EDITION_DATE.


PS : I read about this special register as XML-INFORMATION which can be used to determine if the XML-TEXT is broken and continued in following tag. If this register has value 000000001 means its not broken and if it has value of 00000002 than it is broken.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
This topic is locked: you cannot edit posts or make replies. Automation need help in sorting the data DFSORT/ICETOOL 38
Search our Forums:

Back to Top