The Error Handler used for the examples is a very simple one which reports the error to and continues until the XML document has been fully parsed or until a fatal-error has been reported.Namespaces have been introduced to XML after the first specification of XML had received the official W3C Recommendation status.It will try to recover, but if your selection isn't well-formed, chances are the result is not what you want.
This is the reason why (most of the) XML parser implementations do not support XML Namespaces by default, to handle the validation of XML documents with namespaces correctly it is therefore necessary to configure the underlying parsers to provide support for XML Namespaces.
) as defined below has been used in the code examples to validate the input document.
Validate XML, XHTML, HTML, and XSLT files on the fly with lxml against a Document Type Definition (DTD), an XML schema (XSD), a Relax NG schema (RNG), or a Schematron schema.
Exalt supports XML catalogs via lxml so that you don't need to put unnecessary load on W3C's servers.
Sometimes it also includes a good luck wish but not always.