| |
- 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.
|