Python non validating xml parser

Rated 3.94/5 based on 677 customer reviews

An application must provide callbacks (or their equivalent) in order to receive information back from the parser.While some of them have a validating mode, all the parsers were run as non-validating parsers.I consider it risky, to violate XML on token level (level-0) and hope to find a tool, which checks for level-1 compliance.The probability to find one is not higher in first-party tools.May 5, 1999 Clark Cooper This article compares the performance of six implementations of a single program that processes XML.

Is there any way to validate the xml against a DTD or XML Scheme?

* pulldom: a DOM implementation that supports lazy instantiation of nodes.

* marshal: a module with several options for serializing Python objects to XML, including WDDX and XML-RPC.

For various reasons I can't use any third-party packages. the xml above is not conrrect since it has a '&' in it.

Note that the DOCTYPE definition sentence refer to a DTD.

Leave a Reply