blob: 1893fba894f4e03c5aa7acf54073e34de386c306 [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
8
Georg Brandl116aa622007-08-15 14:28:22 +00009:mod:`xml.dom.pulldom` allows building only selected portions of a Document
10Object Model representation of a document from SAX events.
11
12
Georg Brandl7f01a132009-09-16 15:58:14 +000013.. class:: PullDOM(documentFactory=None)
Georg Brandl116aa622007-08-15 14:28:22 +000014
15 :class:`xml.sax.handler.ContentHandler` implementation that ...
16
17
18.. class:: DOMEventStream(stream, parser, bufsize)
19
20 ...
21
22
Georg Brandl7f01a132009-09-16 15:58:14 +000023.. class:: SAX2DOM(documentFactory=None)
Georg Brandl116aa622007-08-15 14:28:22 +000024
25 :class:`xml.sax.handler.ContentHandler` implementation that ...
26
27
Georg Brandl7f01a132009-09-16 15:58:14 +000028.. function:: parse(stream_or_string, parser=None, bufsize=None)
Georg Brandl116aa622007-08-15 14:28:22 +000029
30 ...
31
32
Georg Brandl7f01a132009-09-16 15:58:14 +000033.. function:: parseString(string, parser=None)
Georg Brandl116aa622007-08-15 14:28:22 +000034
35 ...
36
37
38.. data:: default_bufsize
39
40 Default value for the *bufsize* parameter to :func:`parse`.
41
Georg Brandl55ac8f02007-09-01 13:51:09 +000042 The value of this variable can be changed before calling :func:`parse` and
43 the new value will take effect.
Georg Brandl116aa622007-08-15 14:28:22 +000044
45
46.. _domeventstream-objects:
47
48DOMEventStream Objects
49----------------------
50
51
52.. method:: DOMEventStream.getEvent()
53
54 ...
55
56
57.. method:: DOMEventStream.expandNode(node)
58
59 ...
60
61
62.. method:: DOMEventStream.reset()
63
64 ...
65