xml.sax.expatreader
index
/usr/local/lib/python2.4/xml/sax/expatreader.py
Module Docs

SAX driver for the pyexpat C module.  This driver works with
pyexpat.__version__ == '2.22'.

 
Modules
       
xml.parsers.expat
xml.sax.handler
xml.sax.saxutils
xml.sax.xmlreader

 
Classes
       
xml.sax.xmlreader.IncrementalParser(xml.sax.xmlreader.XMLReader)
ExpatParser(xml.sax.xmlreader.IncrementalParser, xml.sax.xmlreader.Locator)
xml.sax.xmlreader.Locator
ExpatLocator
ExpatParser(xml.sax.xmlreader.IncrementalParser, xml.sax.xmlreader.Locator)

 
class ExpatLocator(xml.sax.xmlreader.Locator)
    Locator for use with the ExpatParser class.
 
This uses a weak reference to the parser object to avoid creating
a circular reference between the parser and the content handler.
 
  Methods defined here:
__init__(self, parser)
getColumnNumber(self)
getLineNumber(self)
getPublicId(self)
getSystemId(self)

 
class ExpatParser(xml.sax.xmlreader.IncrementalParser, xml.sax.xmlreader.Locator)
    SAX driver for the pyexpat C module.
 
 
Method resolution order:
ExpatParser
xml.sax.xmlreader.IncrementalParser
xml.sax.xmlreader.XMLReader
xml.sax.xmlreader.Locator

Methods defined here:
__init__(self, namespaceHandling=0, bufsize=65516)
character_data(self, data)
# this is not used (call directly to ContentHandler)
close(self)
end_element(self, name)
end_element_ns(self, name)
end_namespace_decl(self, prefix)
external_entity_ref(self, context, base, sysid, pubid)
feed(self, data, isFinal=0)
getColumnNumber(self)
getFeature(self, name)
getLineNumber(self)
getProperty(self, name)
getPublicId(self)
getSystemId(self)
notation_decl(self, name, base, sysid, pubid)
parse(self, source)
Parse an XML document from a URL or an InputSource.
prepareParser(self, source)
processing_instruction(self, target, data)
# this is not used (call directly to ContentHandler)
reset(self)
setContentHandler(self, handler)
setFeature(self, name, state)
setProperty(self, name, value)
skipped_entity_handler(self, name, is_pe)
start_doctype_decl(self, name, sysid, pubid, has_internal_subset)
start_element(self, name, attrs)
# event handlers
start_element_ns(self, name, attrs)
start_namespace_decl(self, prefix, uri)
unparsed_entity_decl(self, name, base, sysid, pubid, notation_name)

Methods inherited from xml.sax.xmlreader.XMLReader:
getContentHandler(self)
Returns the current ContentHandler.
getDTDHandler(self)
Returns the current DTD handler.
getEntityResolver(self)
Returns the current EntityResolver.
getErrorHandler(self)
Returns the current ErrorHandler.
setDTDHandler(self, handler)
Register an object to receive basic DTD-related events.
setEntityResolver(self, resolver)
Register an object to resolve external entities.
setErrorHandler(self, handler)
Register an object to receive error-message events.
setLocale(self, locale)
Allow an application to set the locale for errors and warnings.
 
SAX parsers are not required to provide localization for errors
and warnings; if they cannot support the requested locale,
however, they must throw a SAX exception. Applications may
request a locale change in the middle of a parse.

 
Functions
       
create_parser(*args, **kwargs)

 
Data
        feature_external_ges = 'http://xml.org/sax/features/external-general-entities'
feature_external_pes = 'http://xml.org/sax/features/external-parameter-entities'
feature_namespace_prefixes = 'http://xml.org/sax/features/namespace-prefixes'
feature_namespaces = 'http://xml.org/sax/features/namespaces'
feature_string_interning = 'http://xml.org/sax/features/string-interning'
feature_validation = 'http://xml.org/sax/features/validation'
property_interning_dict = 'http://www.python.org/sax/properties/interning-dict'
property_xml_string = 'http://xml.org/sax/properties/xml-string'
version = '0.20'