In addition, attached please find the XML that I have (at the end)
Using XMLSpy and other XML Editor, I am able to validate the XML against
the XSD (layout.xsd) without any error
However, when doing it within webMethods
Create a Document Type “SubmissionDT” in Developer based on the
layout.xsd -> Root Element Submission
Will create a schema schema_SubmissionDT by webMethods
Create a Flow Services
2.1 xmlStringToXMLNode <- passing in the XML as xmldata
<- isXML set to true
2.2 xmlNodeToDocument -> output document to Document
Type “SubmissionDT”
2.3 invoke pub.schema:validate <- passing in “SubmissionDT” to
objects
<- set confirmsTo to the documentType
definition “SubmissionDT”
However, keep complaing the Submission/T619/TRNMTR_ADDR/cntry_Cd
you are right and i do understand that pattern(p{L}{3}|p{N}{3}) and <cntry_cd>CAN</cntry_cd> should be valid ,but still i dont understand why the schema validate service is showing as the error…
So i will again investigate on this and let you know if i come with any resolution.
By setting ignoreContent = “true” and validating against the document Type, then there is no errors
However, if I use the *node object from xmlStringToXMLNode and use
it to call pub.validate:schema and validating against the schema
created by webMethods (automatically when you create a document type based on XSD), webMethods returns back with errors
errors
error[0]
pathName /Submission/T619/
errorCode NV-009
errorMessage [ISC.0082.9009] Child element sbmt_ref_id {}
at position 0 is unexpected
which I don’t understand why the element sbmt_ref_id should be a problem
Is that because my XSD is 2001 specification vs the old 1999