Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Validating the XML document against the schema

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Thu Mar 06, 2008 9:01 pm    Post subject: Validating the XML document against the schema
Reply with quote

Hi,

The input file to our appln is an XML document and we use PARSE to convert it to COBOL and then generate the final XML document by XML GENERATE command.

Now the requirement is to validate the XML document against the schema before sending it to the front end. Basically we will have to check
whether the generated XML document conforms to the schema. Any pointers would be of great help.


Please throw some light on this.
Back to top
View user's profile Send private message

stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Fri Mar 07, 2008 6:28 pm    Post subject:
Reply with quote

You'll either need to write something yourself or find a product to purchase to validate the output from the XML GENERATE command. Cobol has no built in method to check an XML doc against a schema.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Fri Mar 07, 2008 8:09 pm    Post subject: Reply to: Validating the XML document against the schema
Reply with quote

stodolas,

Quote:
Cobol has no built in method to check an XML doc against a schema.


Thanks for the details.


Quote:
You'll either need to write something yourself


Could you please give me more details on this?

Thanks a lot.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Fri Mar 07, 2008 8:10 pm    Post subject:
Reply with quote

I don't know how to write it. There is probably something out there that tells how to do it manually. From that you'll need to write code.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10276
Location: italy

PostPosted: Sat Mar 08, 2008 1:43 am    Post subject: Reply to: Validating the XML document against the schema
Reply with quote

Just out being curious I run a stupid google search with ...

validating xml document against a schema

and , guees what icon_confused.gif

It could be very interesting to look at the different
methods, softwares, code snippets available for such tasks
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Tue Mar 11, 2008 12:34 am    Post subject: Reply to: Validating the XML document against the schema
Reply with quote

Thanks stodolas and e.s for the details.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need help in reading and validating a... ABINAYATHULASI COBOL Programming 8 Tue Apr 18, 2017 11:42 am
No new posts Validating file with multiple header/... mohitsaini DFSORT/ICETOOL 6 Thu Apr 13, 2017 1:53 am
No new posts Getting list of tables defined under ... kishpra DB2 2 Wed Aug 24, 2016 10:36 am
No new posts Geneartion of COBOL copybook structre... murugan_mf COBOL Programming 3 Fri May 20, 2016 12:48 pm
No new posts Validating TSO node id in Job venkaraj JCL & VSAM 16 Thu May 05, 2016 4:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us