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

Validating the XML document against the schema


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Aaru

Senior Member


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

PostPosted: Thu Mar 06, 2008 9:01 pm
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
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: 1287
Location: Chennai, India

PostPosted: Fri Mar 07, 2008 8:09 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Mar 08, 2008 1:43 am
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: 1287
Location: Chennai, India

PostPosted: Tue Mar 11, 2008 12:34 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
No new posts COMPUSET/XICS z/os document required All Other Mainframe Topics 1
No new posts Trying to document a weird condition ... CICS 1
No new posts IBM Fault Analyzer Document ABENDS & Debugging 4
No new posts converting a mainframe file with ASA ... All Other Mainframe Topics 5
Search our Forums:

Back to Top