View previous topic :: View next topic
|
Author |
Message |
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 632 Location: Wisconsin
|
|
|
|
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 |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 632 Location: Wisconsin
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Just out being curious I run a stupid google search with ...
validating xml document against a schema
and , guees what
It could be very interesting to look at the different
methods, softwares, code snippets available for such tasks |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Thanks stodolas and e.s for the details. |
|
Back to top |
|
|
|