Navigation

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

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.

class xml.dom.pulldom.PullDOM(documentFactory=None)

xml.sax.handler.ContentHandler implementation that ...

class xml.dom.pulldom.DOMEventStream(stream, parser, bufsize)

...

class xml.dom.pulldom.SAX2DOM(documentFactory=None)

xml.sax.handler.ContentHandler implementation that ...

xml.dom.pulldom.parse(stream_or_string, parser=None, bufsize=None)

...

xml.dom.pulldom.parseString(string, parser=None)

...

xml.dom.pulldom.default_bufsize

Default value for the bufsize parameter to parse().

The value of this variable can be changed before calling parse() and the new value will take effect.

19.7.1. DOMEventStream Objects

DOMEventStream.getEvent()

...

DOMEventStream.expandNode(node)

...

DOMEventStream.reset()

...

Table Of Contents

Previous topic

19.6. xml.dom.minidom — Lightweight DOM implementation

Next topic

19.8. xml.sax — Support for SAX2 parsers

This Page

Navigation

© Copyright 1990-2011, Python Software Foundation.
The Python Software Foundation is a non-profit corporation. Please donate.
Last updated on Feb 20, 2011. Found a bug?
Created using Sphinx 1.0.7.

AltStyle によって変換されたページ (->オリジナル) /