Use for questions about the xmlschema Python library for processing XML Schema based files and XML data.
The xmlschema library is an XML Schema validator and data conversion library for Python.
Asking Questions:
Before asking a question, make sure you have read the usage section of the documentation and API docs.
Please provide an example of XML data and details of relevant XML Schema (if appropriate) in your question.
Usage
Import the library, create a schema instance using the path of the file containing the schema as an argument, and then validate an XML instance file.
import xmlschema
my_schema = xmlschema.XMLSchema('vehicles.xsd')
# validate() raises exception if fails
my_schema.validate('vehicles.xml')
# or call is_valid() which returns True or False
valid = my_schema.is_valid('vehicles.xml')