Package xml :: Package sax
[hide private]
[frames] | no frames]

Package sax

Simple API for XML (SAX) implementation for Python.

This module provides an implementation of the SAX 2 interface;
information about the Java version of the interface can be found at
http://www.megginson.com/SAX/.  The Python version of the interface is
documented at <...>.

This package contains the following modules:

handler -- Base classes and constants which define the SAX 2 API for
           the 'client-side' of SAX for Python.

saxutils -- Implementation of the convenience classes commonly used to
            work with SAX.

xmlreader -- Base classes and constants which define the SAX 2 API for
             the parsers used with SAX for Python.

expatreader -- Driver that allows use of the Expat parser with SAX.

Submodules [hide private]

Functions [hide private]
 
parse(source, handler, errorHandler=ErrorHandler())
 
parseString(string, handler, errorHandler=ErrorHandler())
 
make_parser(parser_list=[])
Creates and returns a SAX parser.
 
_create_parser(parser_name)
Variables [hide private]
  _false = 0
  _key = 'python.xml.sax.parser'
  default_parser_list = ['xml.sax.expatreader']

Imports: InputSource, ContentHandler, ErrorHandler, SAXException, SAXNotRecognizedException, SAXParseException, SAXNotSupportedException, SAXReaderNotAvailable, xml, _exceptions, expatreader, handler, saxutils, xmlreader


Function Details [hide private]

make_parser(parser_list=[])

 

Creates and returns a SAX parser.

Creates the first parser it is able to instantiate of the ones given in the list created by doing parser_list + default_parser_list. The lists must contain the names of Python modules containing both a SAX parser and a create_parser function.