Python validating sax parser

It allows application writers to write applications that use XML parsers, but are independent of which parser is actually used.(Think of it as JDBC for XML.)" (Lars Marius Garshol, SAX for Python, see Resources) class that is registered with whatever parser is used.Some "bleeding-edge" features might be contained in the latest XML-SIG package that are not in a standard Python distribution.But for the vast majority of purposes--including the discussion in this article--the XML support in Python 2.0 will be what you are interested in.

Like Perl, REBOL, REXX, and TCL it is a flexible scripting language with powerful text manipulation capabilities.

The model is not specific to Python, but is a common XML model (see Resources for further information).

Python's DOM package is built upon SAX, and is included in Python 2.0's standard XML support.

The parsed text is handled as a sequential stream, and any accumulators used are the programmer's responsibility (such as the string of characters (#PCDATA) within a tag, or a list/dictionary of tags encountered).

File: try_Validation One reason you might want to look beyond the standard XML support is if you need to perform validation along with your parsing.