Page 1 of 1

xml generate and validation in cobol.

Posted: Thu Sep 25, 2014 3:06 pm
by Piggy Chop
Hi,

We've planned to go with XML Schema and make use of VALIDATING clause in XML PARSE as below:

Code: Select all

XML PARSE xmldoc
VALIDATING WITH mySchema-id
PROCESSING PROCEDURE p1
END-XML
But one of the client said that we could use VALIDATING WITH clause with XML GENERATE too. But I donot find any references of using VALIDATING WITH clause with XML GENERATE. VALIDATING WITH clause has been used with only XML PARSE. Can someone please advise on this?

Re: xml generate and validation in cobol.

Posted: Thu Sep 25, 2014 6:18 pm
by nicc
Read the IBM COBOL Language Reference for the level of COBOL that you are using (assuming that you are using IBM COBOL). I checked the 5.1 version which was the latest that was returned on my search - and guess what?

Re: xml generate and validation in cobol.

Posted: Thu Sep 25, 2014 9:20 pm
by Piggy Chop
We are on enterprise cobol 4.2 and in the manual for it i dont see XML GENERATION with VALIDATION...what should i guess now?

Re: xml generate and validation in cobol.

Posted: Thu Sep 25, 2014 9:45 pm
by enrico-sorichetti
what should i guess now?
what anybody with a norma IQ would :mrgreen: