It can validate an XML document as it reads and parses the document.
In this example, we demonstrate how to activate such validation.
The example below shows how to use an internally defined XSD.
The example after that shows how to define an XSD externally.
The illustration validates an XML document that the user chooses, either or catelog1against the XML Schema document
You need one schema and two XML files to validate against the schema.
After a few days I got an answer that they are not able to validate our example XMLs against the provided Schema so I should give a better hint how we do that.
Create and set the properties of an Xml Reader Settings object.Error is not on your side, but the implementation of Oracle and non-standard format “xsd: date Time”.Oracle is unable to cope with the end character “Z” for the zone.Because we offer an XML based interface to our system, where the customers have to provide the XML data which we read into the system — and naturally we give an Exception if the provided XML does not match our expectations (which is defined in the XSD naturally).So we suggested some on-line resources where you can put in the XML and XSD and validate them and we mentioned the capability of open source tools too.Well, I’ll be lazy with this post, I will not provide any source code among the text nor any XMLs or XSDs.