Validation
XML Schema is a W3C standard schema technology. It is a powerful
schema language but can be complicated and hard to maintain.
A document can be validated against a XSD schema using the validateXSD accessor. The validateXSD
accessor is provided by the ext_xml module.
Here is
an example that validates the first Act of King Lear against an XML schema for the Act.
The result is a canonical boolean document with value true.
View
Here is
another example but in this case the document has been deliberately corrupted. This shows the XSD error handling.