19.8. xml.dom.pulldom — Support for building partial DOM trees — Python v2.7 documentation (original) (raw)
New in version 2.0.
xml.dom.pulldom allows building only selected portions of a Document Object Model representation of a document from SAX events.
class xml.dom.pulldom.PullDOM([_documentFactory_])¶
xml.sax.handler.ContentHandler implementation that ...
class xml.dom.pulldom.DOMEventStream(stream, parser, bufsize)¶
...
class xml.dom.pulldom.SAX2DOM([_documentFactory_])¶
xml.sax.handler.ContentHandler implementation that ...
xml.dom.pulldom.parse(_stream_or_string_[, _parser_[, _bufsize_]])¶
...
xml.dom.pulldom.parseString(_string_[, _parser_])¶
...
xml.dom.pulldom.default_bufsize¶
Default value for the bufsize parameter to parse().
Changed in version 2.1: The value of this variable can be changed before calling parse() and the new value will take effect.
19.8.1. DOMEventStream Objects¶
DOMEventStream.getEvent()¶
...
DOMEventStream.expandNode(node)¶
...
DOMEventStream.reset()¶
...