xml.sax.saxutils
index
/usr/lib/python2.1/xml/sax/saxutils.py

A library of useful helper classes to the SAX classes, for the
convenience of application and driver writers.

 
Modules
            
xml.sax.handler
os
types
urllib
urlparse
xml.sax.xmlreader

 
Classes
            
xml.sax.handler.ContentHandler
XMLGenerator
xml.sax.xmlreader.XMLReader
XMLFilterBase

 
class XMLFilterBase(xml.sax.xmlreader.XMLReader)
      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.
 
  
__init__(self, parent=None)
characters(self, content)
endDocument(self)
endElement(self, name)
endElementNS(self, name, qname)
endPrefixMapping(self, prefix)
error(self, exception)
fatalError(self, exception)
getContentHandler(self) from xml.sax.xmlreader.XMLReader
getDTDHandler(self) from xml.sax.xmlreader.XMLReader
getEntityResolver(self) from xml.sax.xmlreader.XMLReader
getErrorHandler(self) from xml.sax.xmlreader.XMLReader
getFeature(self, name)
getParent(self)
getProperty(self, name)
ignorableWhitespace(self, chars)
notationDecl(self, name, publicId, systemId)
parse(self, source)
processingInstruction(self, target, data)
resolveEntity(self, publicId, systemId)
setContentHandler(self, handler) from xml.sax.xmlreader.XMLReader
setDTDHandler(self, handler) from xml.sax.xmlreader.XMLReader
setDocumentLocator(self, locator)
setEntityResolver(self, resolver) from xml.sax.xmlreader.XMLReader
setErrorHandler(self, handler) from xml.sax.xmlreader.XMLReader
setFeature(self, name, state)
setLocale(self, locale)
setParent(self, parent)
setProperty(self, name, value)
skippedEntity(self, name)
startDocument(self)
startElement(self, name, attrs)
startElementNS(self, name, qname, attrs)
startPrefixMapping(self, prefix, uri)
unparsedEntityDecl(self, name, publicId, systemId, ndata)
warning(self, exception)

 
class XMLGenerator(xml.sax.handler.ContentHandler)
       
  
__init__(self, out=None, encoding='iso-8859-1')
characters(self, content)
endDocument(self) from xml.sax.handler.ContentHandler
endElement(self, name)
endElementNS(self, name, qname)
endPrefixMapping(self, prefix)
ignorableWhitespace(self, content)
processingInstruction(self, target, data)
setDocumentLocator(self, locator) from xml.sax.handler.ContentHandler
skippedEntity(self, name) from xml.sax.handler.ContentHandler
startDocument(self)
startElement(self, name, attrs)
startElementNS(self, name, qname, attrs)
startPrefixMapping(self, prefix, uri)

 
Functions
            
escape(data, entities={})
Escape &, <, and > in a string of data.
 
You can escape other strings of data by passing a dictionary as
the optional entities parameter.  The keys and values must all be
strings; each key will be replaced with its corresponding value.
prepare_input_source(source, base='')
This function takes an InputSource and an optional base URL and
returns a fully resolved InputSource object ready for reading.

 
Data
             _StringTypes = [<type 'string'>, <type 'unicode'>]
__file__ = '/usr/lib/python2.1/xml/sax/saxutils.pyc'
__name__ = 'xml.sax.saxutils'