blob: 4a5ef4c13541737fa4faaccca4d9a3c0e462dc2a [file] [log] [blame]
Georg Brandl116aa622007-08-15 14:28:22 +00001:mod:`xml.dom.pulldom` --- Support for building partial DOM trees
2=================================================================
3
4.. module:: xml.dom.pulldom
5 :synopsis: Support for building partial DOM trees from SAX events.
6.. moduleauthor:: Paul Prescod <paul@prescod.net>
7
Raymond Hettinger3029aff2011-02-10 08:09:36 +00008**Source code:** :source:`Lib/xml/dom/pulldom.py`
9
10--------------
Georg Brandl116aa622007-08-15 14:28:22 +000011
Georg Brandl116aa622007-08-15 14:28:22 +000012:mod:`xml.dom.pulldom` allows building only selected portions of a Document
13Object Model representation of a document from SAX events.
14
15
Georg Brandl7f01a132009-09-16 15:58:14 +000016.. class:: PullDOM(documentFactory=None)
Georg Brandl116aa622007-08-15 14:28:22 +000017
18 :class:`xml.sax.handler.ContentHandler` implementation that ...
19
20
21.. class:: DOMEventStream(stream, parser, bufsize)
22
23 ...
24
25
Georg Brandl7f01a132009-09-16 15:58:14 +000026.. class:: SAX2DOM(documentFactory=None)
Georg Brandl116aa622007-08-15 14:28:22 +000027
28 :class:`xml.sax.handler.ContentHandler` implementation that ...
29
30
Georg Brandl7f01a132009-09-16 15:58:14 +000031.. function:: parse(stream_or_string, parser=None, bufsize=None)
Georg Brandl116aa622007-08-15 14:28:22 +000032
33 ...
34
35
Georg Brandl7f01a132009-09-16 15:58:14 +000036.. function:: parseString(string, parser=None)
Georg Brandl116aa622007-08-15 14:28:22 +000037
38 ...
39
40
41.. data:: default_bufsize
42
43 Default value for the *bufsize* parameter to :func:`parse`.
44
Georg Brandl55ac8f02007-09-01 13:51:09 +000045 The value of this variable can be changed before calling :func:`parse` and
46 the new value will take effect.
Georg Brandl116aa622007-08-15 14:28:22 +000047
48
49.. _domeventstream-objects:
50
51DOMEventStream Objects
52----------------------
53
54
55.. method:: DOMEventStream.getEvent()
56
57 ...
58
59
60.. method:: DOMEventStream.expandNode(node)
61
62 ...
63
64
65.. method:: DOMEventStream.reset()
66
67 ...
68