Apart from the built-in DTD support in parsers, lxml currently supports three schema languages: DTD, Relax NG and XML Schema.
in on line 40New error message: DOMDocument::schema Validate() Generated Errors!
XML schema is supported in a similar way, but requires an explicit schema to be provided: As described above, the parser support for DTDs depends on internal or external subsets of the XML file.
This means that the XML file itself must either contain a DTD or must reference a DTD to make this work.
Error 1824: Element 'child_integer': 'Error condition.' is not a valid value of the atomic type 'xs:integer'.
in on line 4 I had a tricky issue using this method, i thought it was bug but i realized i misundestood something about namespaces.