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

_ClassType XMLFilterBase

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

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

Method Details [hide private]

__init__(self, parent=None)
(Constructor)

 
Overrides: xmlreader.XMLReader.__init__

parse(self, source)

 

Parse an XML document from a system identifier or an InputSource.

Overrides: xmlreader.XMLReader.parse
(inherited documentation)

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.

Overrides: xmlreader.XMLReader.setLocale
(inherited documentation)

getFeature(self, name)

 

Looks up and returns the state of a SAX2 feature.

Overrides: xmlreader.XMLReader.getFeature
(inherited documentation)

setFeature(self, name, state)

 

Sets the state of a SAX2 feature.

Overrides: xmlreader.XMLReader.setFeature
(inherited documentation)

getProperty(self, name)

 

Looks up and returns the value of a SAX2 property.

Overrides: xmlreader.XMLReader.getProperty
(inherited documentation)

setProperty(self, name, value)

 

Sets the value of a SAX2 property.

Overrides: xmlreader.XMLReader.setProperty
(inherited documentation)