Validates the XML string/file against the XSD string/file. XSD files are "XML Schemas" that describe the structure of a XML document. The validator checks first the XML, meaning that your XML string/file must be parsable using a XML parser, and only then does it validate your XML against the XML Schema.