Validating XML structures using XSD
You can validate an XML file against an XSD (XML Schema Definition).
Use the Module XSD Validation to do so.
This Module is part of the Standard subset. You can find it under Standard modules->Engines->XML.
If a validation returns a negative result, the elements of the XML file that do not correspond to the XSD file are listed.
If your XSD file also contains imported XSD files, be sure those imported XSD files are trustworthy and then set the module attribute Allow External Resolution to True. The module attribute Allow External Resolution is disabled by default.
In this example, you validate the XML file books.xml against the XML schema books.xsd.
{CP[ExampleDirectoryXML]} refers to the file path you defined in the test configuration parameter ExampleDirectoryXML.
XSD validation