Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / src / nas,5.n2.os.2 / lib / python / html / python / lib / module-xml.dom.pulldom.html
CommitLineData
86530b38
AT
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<html>
3<head>
4<link rel="STYLESHEET" href="lib.css" type='text/css' />
5<link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" />
6<link rel='start' href='../index.html' title='Python Documentation Index' />
7<link rel="first" href="lib.html" title='Python Library Reference' />
8<link rel='contents' href='contents.html' title="Contents" />
9<link rel='index' href='genindex.html' title='Index' />
10<link rel='last' href='about.html' title='About this document...' />
11<link rel='help' href='about.html' title='About this document...' />
12<link rel="next" href="module-xml.sax.html" />
13<link rel="prev" href="module-xml.dom.minidom.html" />
14<link rel="parent" href="markup.html" />
15<link rel="next" href="domeventstream-objects.html" />
16<meta name='aesop' content='information' />
17<title>13.8 xml.dom.pulldom -- Support for building partial DOM trees</title>
18</head>
19<body>
20<DIV CLASS="navigation">
21<div id='top-navigation-panel' xml:id='top-navigation-panel'>
22<table align="center" width="100%" cellpadding="0" cellspacing="2">
23<tr>
24<td class='online-navigation'><a rel="prev" title="13.7.3 minidom and the"
25 href="minidom-and-dom.html"><img src='../icons/previous.png'
26 border='0' height='32' alt='Previous Page' width='32' /></A></td>
27<td class='online-navigation'><a rel="parent" title="13. Structured Markup Processing"
28 href="markup.html"><img src='../icons/up.png'
29 border='0' height='32' alt='Up One Level' width='32' /></A></td>
30<td class='online-navigation'><a rel="next" title="13.8.1 DOMEventStream Objects"
31 href="domeventstream-objects.html"><img src='../icons/next.png'
32 border='0' height='32' alt='Next Page' width='32' /></A></td>
33<td align="center" width="100%">Python Library Reference</td>
34<td class='online-navigation'><a rel="contents" title="Table of Contents"
35 href="contents.html"><img src='../icons/contents.png'
36 border='0' height='32' alt='Contents' width='32' /></A></td>
37<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
38 border='0' height='32' alt='Module Index' width='32' /></a></td>
39<td class='online-navigation'><a rel="index" title="Index"
40 href="genindex.html"><img src='../icons/index.png'
41 border='0' height='32' alt='Index' width='32' /></A></td>
42</tr></table>
43<div class='online-navigation'>
44<b class="navlabel">Previous:</b>
45<a class="sectref" rel="prev" href="minidom-and-dom.html">13.7.3 minidom and the</A>
46<b class="navlabel">Up:</b>
47<a class="sectref" rel="parent" href="markup.html">13. Structured Markup Processing</A>
48<b class="navlabel">Next:</b>
49<a class="sectref" rel="next" href="domeventstream-objects.html">13.8.1 DOMEventStream Objects</A>
50</div>
51<hr /></div>
52</DIV>
53<!--End of Navigation Panel-->
54
55<H1><A NAME="SECTION0015800000000000000000">
5613.8 <tt class="module">xml.dom.pulldom</tt> --
57 Support for building partial DOM trees</A>
58</H1>
59
60<P>
61<A NAME="module-xml.dom.pulldom"></A>
62
63<P>
64
65<span class="versionnote">New in version 2.0.</span>
66
67<P>
68<tt class="module">xml.dom.pulldom</tt> allows building only selected portions of a
69Document Object Model representation of a document from SAX events.
70
71<P>
72<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
73 <td><nobr><b><span class="typelabel">class</span>&nbsp;<tt id='l2h-4453' xml:id='l2h-4453' class="class">PullDOM</tt></b>(</nobr></td>
74 <td><var></var><big>[</big><var>documentFactory</var><big>]</big><var></var>)</td></tr></table></dt>
75<dd>
76 <tt class="class">xml.sax.handler.ContentHandler</tt> implementation that ...
77</dl>
78
79<P>
80<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
81 <td><nobr><b><span class="typelabel">class</span>&nbsp;<tt id='l2h-4454' xml:id='l2h-4454' class="class">DOMEventStream</tt></b>(</nobr></td>
82 <td><var>stream, parser, bufsize</var>)</td></tr></table></dt>
83<dd>
84 ...
85</dl>
86
87<P>
88<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
89 <td><nobr><b><span class="typelabel">class</span>&nbsp;<tt id='l2h-4455' xml:id='l2h-4455' class="class">SAX2DOM</tt></b>(</nobr></td>
90 <td><var></var><big>[</big><var>documentFactory</var><big>]</big><var></var>)</td></tr></table></dt>
91<dd>
92 <tt class="class">xml.sax.handler.ContentHandler</tt> implementation that ...
93</dl>
94
95<P>
96<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
97 <td><nobr><b><tt id='l2h-4456' xml:id='l2h-4456' class="function">parse</tt></b>(</nobr></td>
98 <td><var>stream_or_string</var><big>[</big><var>,
99 parser</var><big>[</big><var>, bufsize</var><big>]</big><var></var><big>]</big><var></var>)</td></tr></table></dt>
100<dd>
101 ...
102</dl>
103
104<P>
105<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
106 <td><nobr><b><tt id='l2h-4457' xml:id='l2h-4457' class="function">parseString</tt></b>(</nobr></td>
107 <td><var>string</var><big>[</big><var>, parser</var><big>]</big><var></var>)</td></tr></table></dt>
108<dd>
109 ...
110</dl>
111
112<P>
113<dl><dt><b><tt id='l2h-4458' xml:id='l2h-4458'>default_bufsize</tt></b></dt>
114<dd>
115 Default value for the <var>busize</var> parameter to <tt class="function">parse()</tt>.
116
117<span class="versionnote">Changed in version 2.1:
118The value of this variable can be changed before
119 calling <tt class="function">parse()</tt> and the new value will
120 take effect.</span>
121
122</dd></dl>
123
124<P>
125
126<p><br /></p><hr class='online-navigation' />
127<div class='online-navigation'>
128<!--Table of Child-Links-->
129<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></a>
130
131<UL CLASS="ChildLinks">
132<LI><A href="domeventstream-objects.html">13.8.1 DOMEventStream Objects</a>
133</ul>
134<!--End of Table of Child-Links-->
135</div>
136
137<DIV CLASS="navigation">
138<div class='online-navigation'>
139<p></p><hr />
140<table align="center" width="100%" cellpadding="0" cellspacing="2">
141<tr>
142<td class='online-navigation'><a rel="prev" title="13.7.3 minidom and the"
143 href="minidom-and-dom.html"><img src='../icons/previous.png'
144 border='0' height='32' alt='Previous Page' width='32' /></A></td>
145<td class='online-navigation'><a rel="parent" title="13. Structured Markup Processing"
146 href="markup.html"><img src='../icons/up.png'
147 border='0' height='32' alt='Up One Level' width='32' /></A></td>
148<td class='online-navigation'><a rel="next" title="13.8.1 DOMEventStream Objects"
149 href="domeventstream-objects.html"><img src='../icons/next.png'
150 border='0' height='32' alt='Next Page' width='32' /></A></td>
151<td align="center" width="100%">Python Library Reference</td>
152<td class='online-navigation'><a rel="contents" title="Table of Contents"
153 href="contents.html"><img src='../icons/contents.png'
154 border='0' height='32' alt='Contents' width='32' /></A></td>
155<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
156 border='0' height='32' alt='Module Index' width='32' /></a></td>
157<td class='online-navigation'><a rel="index" title="Index"
158 href="genindex.html"><img src='../icons/index.png'
159 border='0' height='32' alt='Index' width='32' /></A></td>
160</tr></table>
161<div class='online-navigation'>
162<b class="navlabel">Previous:</b>
163<a class="sectref" rel="prev" href="minidom-and-dom.html">13.7.3 minidom and the</A>
164<b class="navlabel">Up:</b>
165<a class="sectref" rel="parent" href="markup.html">13. Structured Markup Processing</A>
166<b class="navlabel">Next:</b>
167<a class="sectref" rel="next" href="domeventstream-objects.html">13.8.1 DOMEventStream Objects</A>
168</div>
169</div>
170<hr />
171<span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span>
172</DIV>
173<!--End of Navigation Panel-->
174<ADDRESS>
175See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
176</ADDRESS>
177</BODY>
178</HTML>