xml :: sax :: saxutils :: XMLFilterBase :: Class XMLFilterBase
[hide private]
[frames] | no frames]

Class XMLFilterBase

source code

xmlreader.XMLReader --+
                      |
                     XMLFilterBase

This class is designed to sit between an XMLReader and the client application's event handlers. By default, it does nothing but pass requests up to the reader and events on to the handlers unmodified, but subclasses can override specific methods to modify the event stream or the configuration requests as they pass through.

Instance Methods [hide private]
 
__init__(self, parent=None) source code
 
characters(self, content) source code
 
endDocument(self) source code
 
endElement(self, name) source code
 
endElementNS(self, name, qname) source code
 
endPrefixMapping(self, prefix) source code
 
error(self, exception) source code
 
fatalError(self, exception) source code
 
getFeature(self, name)
Looks up and returns the state of a SAX2 feature.
source code
 
getParent(self) source code
 
getProperty(self, name)
Looks up and returns the value of a SAX2 property.
source code
 
ignorableWhitespace(self, chars) source code
 
notationDecl(self, name, publicId, systemId) source code
 
parse(self, source)
Parse an XML document from a system identifier or an InputSource.
source code
 
processingInstruction(self, target, data) source code
 
resolveEntity(self, publicId, systemId) source code
 
setDocumentLocator(self, locator) source code
 
setFeature(self, name, state)
Sets the state of a SAX2 feature.
source code
 
setLocale(self, locale)
Allow an application to set the locale for errors and warnings.
source code
 
setParent(self, parent) source code
 
setProperty(self, name, value)
Sets the value of a SAX2 property.
source code
 
skippedEntity(self, name) source code
 
startDocument(self) source code
 
startElement(self, name, attrs) source code
 
startElementNS(self, name, qname, attrs) source code
 
startPrefixMapping(self, prefix, uri) source code
 
unparsedEntityDecl(self, name, publicId, systemId, ndata) source code
 
warning(self, exception) source code

Inherited from xmlreader.XMLReader: getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler

Method Details [hide private]

__init__(self, parent=None)
(Constructor)

source code 
Overrides: xmlreader.XMLReader.__init__

getFeature(self, name)

source code 
Looks up and returns the state of a SAX2 feature.
Overrides: xmlreader.XMLReader.getFeature
(inherited documentation)

getProperty(self, name)

source code 
Looks up and returns the value of a SAX2 property.
Overrides: xmlreader.XMLReader.getProperty
(inherited documentation)

parse(self, source)

source code 
Parse an XML document from a system identifier or an InputSource.
Overrides: xmlreader.XMLReader.parse
(inherited documentation)

setFeature(self, name, state)

source code 
Sets the state of a SAX2 feature.
Overrides: xmlreader.XMLReader.setFeature
(inherited documentation)

setLocale(self, locale)

source code 

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.
Overrides: xmlreader.XMLReader.setLocale
(inherited documentation)

setProperty(self, name, value)

source code 
Sets the value of a SAX2 property.
Overrides: xmlreader.XMLReader.setProperty
(inherited documentation)