PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` 19.10. xml.dom.pulldom — Support for building partial DOM trees — Python 2.7.5 documentation

19.10. xml.dom.pulldom — Support for building partial DOM trees

New in version 2.0.

Source code: Lib/xml/dom/pulldom.py


xml.dom.pulldom allows building only selected portions of a Document Object Model representation of a document from SAX events.

Warning

The xml.dom.pulldom module is not secure against maliciously constructed data. If you need to parse untrusted or unauthenticated data see XML vulnerabilities.

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.10.1. DOMEventStream Objects

DOMEventStream.getEvent()

...

DOMEventStream.expandNode(node)

...

DOMEventStream.reset()

...