xml.dom.pulldom
index
/usr/local/lib/python2.4/xml/dom/pulldom.py
Module Docs

 
Modules
       
types
xml

 
Classes
       
DOMEventStream
ErrorHandler
xml.sax.handler.ContentHandler
PullDOM
SAX2DOM

 
class DOMEventStream
     Methods defined here:
__getitem__(self, pos)
__init__(self, stream, parser, bufsize)
__iter__(self)
clear(self)
clear(): Explicitly release parsing objects
expandNode(self, node)
getEvent(self)
next(self)
reset(self)

 
class ErrorHandler
     Methods defined here:
error(self, exception)
fatalError(self, exception)
warning(self, exception)

 
class PullDOM(xml.sax.handler.ContentHandler)
     Methods defined here:
__init__(self, documentFactory=None)
buildDocument(self, uri, tagname)
characters(self, chars)
clear(self)
clear(): Explicitly release parsing structures
comment(self, s)
endDocument(self)
endElement(self, name)
endElementNS(self, name, tagName)
endPrefixMapping(self, prefix)
ignorableWhitespace(self, chars)
pop(self)
processingInstruction(self, target, data)
setDocumentLocator(self, locator)
startDocument(self)
startElement(self, name, attrs)
startElementNS(self, name, tagName, attrs)
startPrefixMapping(self, prefix, uri)

Data and other attributes defined here:
document = None

Methods inherited from xml.sax.handler.ContentHandler:
skippedEntity(self, name)
Receive notification of a skipped entity.
 
The Parser will invoke this method once for each entity
skipped. Non-validating processors may skip entities if they
have not seen the declarations (because, for example, the
entity was declared in an external DTD subset). All processors
may skip external entities, depending on the values of the
http://xml.org/sax/features/external-general-entities and the
http://xml.org/sax/features/external-parameter-entities
properties.

 
class SAX2DOM(PullDOM)
    
Method resolution order:
SAX2DOM
PullDOM
xml.sax.handler.ContentHandler

Methods defined here:
characters(self, chars)
ignorableWhitespace(self, chars)
processingInstruction(self, target, data)
startElement(self, name, attrs)
startElementNS(self, name, tagName, attrs)

Methods inherited from PullDOM:
__init__(self, documentFactory=None)
buildDocument(self, uri, tagname)
clear(self)
clear(): Explicitly release parsing structures
comment(self, s)
endDocument(self)
endElement(self, name)
endElementNS(self, name, tagName)
endPrefixMapping(self, prefix)
pop(self)
setDocumentLocator(self, locator)
startDocument(self)
startPrefixMapping(self, prefix, uri)

Data and other attributes inherited from PullDOM:
document = None

Methods inherited from xml.sax.handler.ContentHandler:
skippedEntity(self, name)
Receive notification of a skipped entity.
 
The Parser will invoke this method once for each entity
skipped. Non-validating processors may skip entities if they
have not seen the declarations (because, for example, the
entity was declared in an external DTD subset). All processors
may skip external entities, depending on the values of the
http://xml.org/sax/features/external-general-entities and the
http://xml.org/sax/features/external-parameter-entities
properties.

 
Functions
       
parse(stream_or_string, parser=None, bufsize=None)
parseString(string, parser=None)

 
Data
        CHARACTERS = 'CHARACTERS'
COMMENT = 'COMMENT'
END_DOCUMENT = 'END_DOCUMENT'
END_ELEMENT = 'END_ELEMENT'
IGNORABLE_WHITESPACE = 'IGNORABLE_WHITESPACE'
PROCESSING_INSTRUCTION = 'PROCESSING_INSTRUCTION'
START_DOCUMENT = 'START_DOCUMENT'
START_ELEMENT = 'START_ELEMENT'
default_bufsize = 16364