validate xml to xsd code example Example: generate xsd from xml XSD is used to validate an XML files.