blob: 18b166fd5cfb225c685e6d8be0e0b1531189bb2c [file] [log] [blame]
Georg Brandl116aa622007-08-15 14:28:22 +00001
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 Brandl116aa622007-08-15 14:28:22 +000010:mod:`xml.dom.pulldom` allows building only selected portions of a Document
11Object 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 Brandl55ac8f02007-09-01 13:51:09 +000043 The value of this variable can be changed before calling :func:`parse` and
44 the new value will take effect.
Georg Brandl116aa622007-08-15 14:28:22 +000045
46
47.. _domeventstream-objects:
48
49DOMEventStream 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