Georg Brandl | 8ec7f65 | 2007-08-15 14:28:01 +0000 | [diff] [blame^] | 1 | |
| 2 | :mod:`xml.dom.pulldom` --- Support for building partial DOM trees |
| 3 | ================================================================= |
| 4 | |
| 5 | .. module:: xml.dom.pulldom |
| 6 | :synopsis: Support for building partial DOM trees from SAX events. |
| 7 | .. moduleauthor:: Paul Prescod <paul@prescod.net> |
| 8 | |
| 9 | |
| 10 | .. versionadded:: 2.0 |
| 11 | |
| 12 | :mod:`xml.dom.pulldom` allows building only selected portions of a Document |
| 13 | Object Model representation of a document from SAX events. |
| 14 | |
| 15 | |
| 16 | .. class:: PullDOM([documentFactory]) |
| 17 | |
| 18 | :class:`xml.sax.handler.ContentHandler` implementation that ... |
| 19 | |
| 20 | |
| 21 | .. class:: DOMEventStream(stream, parser, bufsize) |
| 22 | |
| 23 | ... |
| 24 | |
| 25 | |
| 26 | .. class:: SAX2DOM([documentFactory]) |
| 27 | |
| 28 | :class:`xml.sax.handler.ContentHandler` implementation that ... |
| 29 | |
| 30 | |
| 31 | .. function:: parse(stream_or_string[, parser[, bufsize]]) |
| 32 | |
| 33 | ... |
| 34 | |
| 35 | |
| 36 | .. function:: parseString(string[, parser]) |
| 37 | |
| 38 | ... |
| 39 | |
| 40 | |
| 41 | .. data:: default_bufsize |
| 42 | |
| 43 | Default value for the *bufsize* parameter to :func:`parse`. |
| 44 | |
| 45 | .. versionchanged:: 2.1 |
| 46 | The value of this variable can be changed before calling :func:`parse` and the |
| 47 | new value will take effect. |
| 48 | |
| 49 | |
| 50 | .. _domeventstream-objects: |
| 51 | |
| 52 | DOMEventStream Objects |
| 53 | ---------------------- |
| 54 | |
| 55 | |
| 56 | .. method:: DOMEventStream.getEvent() |
| 57 | |
| 58 | ... |
| 59 | |
| 60 | |
| 61 | .. method:: DOMEventStream.expandNode(node) |
| 62 | |
| 63 | ... |
| 64 | |
| 65 | |
| 66 | .. method:: DOMEventStream.reset() |
| 67 | |
| 68 | ... |
| 69 | |