XSchema Validation
W3C XML Schema
Index > Books > Declarative Development Guide > Technology Tour > XML Validation > XSchema Validation

Rate this page:
Really useful
Satisfactory
Not helpful
Confusing
Incorrect
Unsure
Extra comments:


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.

© 2003-2005, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.