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