A lightweight XML schema validator written in pure Python
minixsv is a lightweight XML schema validator written in “pure” Python.
Currently a subset of the XML schema standard is supported.
minixsv is based on genxmlif, a generic XML interface class, which currently supports minidom, elementtree or 4DOM/pyXML as XML parser Other parsers can be adapted by implementing an appropriate derived interface class.
minixsv provides a simple programming interface (API) for validation of schema and XML input files. Parser or validation errors will raise exceptions.
- After successful validation minixsv provides the input XML tree with the following changes:
Whitespaces inside strings are automatically normalized/collapsed as specified in the XML schema file.
Default/Fixed attributes are automatically inserted if not specified in the input file.
The “post validation” XML tree can be accessed using genxmlif or the contained original interface (minidom, elementtree or 4DOM/pyXML).
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.