1 <?xml version="1.0" encoding="ascii"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6 <title>xml.etree.ElementTree</title>
7 <link rel="stylesheet" href="epydoc.css" type="text/css" />
8 <script type="text/javascript" src="epydoc.js"></script>
11 <body bgcolor="white" text="black" link="blue" vlink="#204080"
13 <!-- ==================== NAVIGATION BAR ==================== -->
14 <table class="navbar" border="0" width="100%" cellpadding="0"
15 bgcolor="#a0c0ff" cellspacing="0">
18 <th> <a
19 href="lxml-module.html">Home</a> </th>
22 <th> <a
23 href="module-tree.html">Trees</a> </th>
26 <th> <a
27 href="identifier-index.html">Indices</a> </th>
30 <th> <a
31 href="help.html">Help</a> </th>
33 <!-- Project homepage -->
34 <th class="navbar" align="right" width="100%">
35 <table border="0" cellpadding="0" cellspacing="0">
36 <tr><th class="navbar" align="center"
37 ><a class="navbar" target="_top" href="/">lxml API</a></th>
41 <table width="100%" cellpadding="0" cellspacing="0">
44 <span class="breadcrumbs">
47 Module ElementTree
51 <table cellpadding="0" cellspacing="0">
52 <!-- hide/show private -->
53 <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
54 onclick="toggle_private();">hide private</a>]</span></td></tr>
55 <tr><td align="right"><span class="options"
56 >[<a href="frames.html" target="_top">frames</a
57 >] | <a href="xml.etree.ElementTree-module.html"
58 target="_top">no frames</a>]</span></td></tr>
63 <!-- ==================== MODULE DESCRIPTION ==================== -->
64 <h1 class="epydoc">Module ElementTree</h1><p class="nomargin-top"><span class="codelink"><a href="xml.etree.ElementTree-pysrc.html">source code</a></span></p>
67 <!-- ==================== CLASSES ==================== -->
68 <a name="section-Classes"></a>
69 <table class="summary" border="1" cellpadding="3"
70 cellspacing="0" width="100%" bgcolor="white">
71 <tr bgcolor="#70b0f0" class="table-header">
72 <td colspan="2" class="table-header">
73 <table border="0" cellpadding="0" cellspacing="0" width="100%">
75 <td align="left"><span class="table-header">Classes</span></td>
76 <td align="right" valign="top"
77 ><span class="options">[<a href="#section-Classes"
78 class="privatelink" onclick="toggle_private();"
79 >hide private</a>]</span></td>
85 <td width="15%" align="right" valign="top" class="summary">
86 <span class="summary-type"> </span>
87 </td><td class="summary">
88 <a href="xml.etree.ElementTree.Element-class.html" class="summary-name">Element</a>
92 <td width="15%" align="right" valign="top" class="summary">
93 <span class="summary-type"> </span>
94 </td><td class="summary">
95 <a href="xml.etree.ElementTree.ElementTree-class.html" class="summary-name">ElementTree</a>
99 <td width="15%" align="right" valign="top" class="summary">
100 <span class="summary-type"> </span>
101 </td><td class="summary">
102 <a href="xml.etree.ElementTree.ParseError-class.html" class="summary-name">ParseError</a>
106 <td width="15%" align="right" valign="top" class="summary">
107 <span class="summary-type"> </span>
108 </td><td class="summary">
109 <a href="xml.etree.ElementTree.QName-class.html" class="summary-name">QName</a>
113 <td width="15%" align="right" valign="top" class="summary">
114 <span class="summary-type"> </span>
115 </td><td class="summary">
116 <a href="xml.etree.ElementTree.TreeBuilder-class.html" class="summary-name">TreeBuilder</a>
120 <td width="15%" align="right" valign="top" class="summary">
121 <span class="summary-type"> </span>
122 </td><td class="summary">
123 <a href="xml.etree.ElementTree.XMLParser-class.html" class="summary-name">XMLParser</a>
127 <td width="15%" align="right" valign="top" class="summary">
128 <span class="summary-type"> </span>
129 </td><td class="summary">
130 <a href="xml.etree.ElementTree.XMLParser-class.html" class="summary-name">XMLTreeBuilder</a>
134 <td width="15%" align="right" valign="top" class="summary">
135 <span class="summary-type"> </span>
136 </td><td class="summary">
137 <a href="xml.etree.ElementTree.Element-class.html" class="summary-name" onclick="show_private();">_Element</a>
141 <td width="15%" align="right" valign="top" class="summary">
142 <span class="summary-type"> </span>
143 </td><td class="summary">
144 <a href="xml.etree.ElementTree.Element-class.html" class="summary-name" onclick="show_private();">_ElementInterface</a>
148 <td width="15%" align="right" valign="top" class="summary">
149 <span class="summary-type"> </span>
150 </td><td class="summary">
151 <a href="xml.etree.ElementTree._IterParseIterator-class.html" class="summary-name" onclick="show_private();">_IterParseIterator</a>
155 <td width="15%" align="right" valign="top" class="summary">
156 <span class="summary-type"> </span>
157 </td><td class="summary">
158 <a href="xml.etree.ElementTree._SimpleElementPath-class.html" class="summary-name" onclick="show_private();">_SimpleElementPath</a>
162 <!-- ==================== FUNCTIONS ==================== -->
163 <a name="section-Functions"></a>
164 <table class="summary" border="1" cellpadding="3"
165 cellspacing="0" width="100%" bgcolor="white">
166 <tr bgcolor="#70b0f0" class="table-header">
167 <td colspan="2" class="table-header">
168 <table border="0" cellpadding="0" cellspacing="0" width="100%">
170 <td align="left"><span class="table-header">Functions</span></td>
171 <td align="right" valign="top"
172 ><span class="options">[<a href="#section-Functions"
173 class="privatelink" onclick="toggle_private();"
174 >hide private</a>]</span></td>
180 <td width="15%" align="right" valign="top" class="summary">
181 <span class="summary-type"> </span>
182 </td><td class="summary">
183 <table width="100%" cellpadding="0" cellspacing="0" border="0">
185 <td><span class="summary-sig"><a name="Comment"></a><span class="summary-sig-name">Comment</span>(<span class="summary-sig-arg">text</span>=<span class="summary-sig-default">None</span>)</span></td>
186 <td align="right" valign="top">
187 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#Comment">source code</a></span>
196 <td width="15%" align="right" valign="top" class="summary">
197 <span class="summary-type"> </span>
198 </td><td class="summary">
199 <table width="100%" cellpadding="0" cellspacing="0" border="0">
201 <td><span class="summary-sig"><a name="PI"></a><span class="summary-sig-name">PI</span>(<span class="summary-sig-arg">target</span>,
202 <span class="summary-sig-arg">text</span>=<span class="summary-sig-default">None</span>)</span></td>
203 <td align="right" valign="top">
204 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#ProcessingInstruction">source code</a></span>
213 <td width="15%" align="right" valign="top" class="summary">
214 <span class="summary-type"> </span>
215 </td><td class="summary">
216 <table width="100%" cellpadding="0" cellspacing="0" border="0">
218 <td><span class="summary-sig"><a name="ProcessingInstruction"></a><span class="summary-sig-name">ProcessingInstruction</span>(<span class="summary-sig-arg">target</span>,
219 <span class="summary-sig-arg">text</span>=<span class="summary-sig-default">None</span>)</span></td>
220 <td align="right" valign="top">
221 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#ProcessingInstruction">source code</a></span>
230 <td width="15%" align="right" valign="top" class="summary">
231 <span class="summary-type"> </span>
232 </td><td class="summary">
233 <table width="100%" cellpadding="0" cellspacing="0" border="0">
235 <td><span class="summary-sig"><a name="SubElement"></a><span class="summary-sig-name">SubElement</span>(<span class="summary-sig-arg">parent</span>,
236 <span class="summary-sig-arg">tag</span>,
237 <span class="summary-sig-arg">attrib</span>=<span class="summary-sig-default"><code class="variable-group">{</code><code class="variable-group">}</code></span>,
238 <span class="summary-sig-arg">**extra</span>)</span></td>
239 <td align="right" valign="top">
240 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#SubElement">source code</a></span>
249 <td width="15%" align="right" valign="top" class="summary">
250 <span class="summary-type"> </span>
251 </td><td class="summary">
252 <table width="100%" cellpadding="0" cellspacing="0" border="0">
254 <td><span class="summary-sig"><a name="XML"></a><span class="summary-sig-name">XML</span>(<span class="summary-sig-arg">text</span>,
255 <span class="summary-sig-arg">parser</span>=<span class="summary-sig-default">None</span>)</span></td>
256 <td align="right" valign="top">
257 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#XML">source code</a></span>
266 <td width="15%" align="right" valign="top" class="summary">
267 <span class="summary-type"> </span>
268 </td><td class="summary">
269 <table width="100%" cellpadding="0" cellspacing="0" border="0">
271 <td><span class="summary-sig"><a name="XMLID"></a><span class="summary-sig-name">XMLID</span>(<span class="summary-sig-arg">text</span>,
272 <span class="summary-sig-arg">parser</span>=<span class="summary-sig-default">None</span>)</span></td>
273 <td align="right" valign="top">
274 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#XMLID">source code</a></span>
283 <td width="15%" align="right" valign="top" class="summary">
284 <span class="summary-type"> </span>
285 </td><td class="summary">
286 <table width="100%" cellpadding="0" cellspacing="0" border="0">
288 <td><span class="summary-sig"><a name="_encode"></a><span class="summary-sig-name">_encode</span>(<span class="summary-sig-arg">text</span>,
289 <span class="summary-sig-arg">encoding</span>)</span></td>
290 <td align="right" valign="top">
291 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#_encode">source code</a></span>
300 <td width="15%" align="right" valign="top" class="summary">
301 <span class="summary-type"> </span>
302 </td><td class="summary">
303 <table width="100%" cellpadding="0" cellspacing="0" border="0">
305 <td><span class="summary-sig"><a name="_escape_attrib"></a><span class="summary-sig-name">_escape_attrib</span>(<span class="summary-sig-arg">text</span>,
306 <span class="summary-sig-arg">encoding</span>)</span></td>
307 <td align="right" valign="top">
308 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#_escape_attrib">source code</a></span>
317 <td width="15%" align="right" valign="top" class="summary">
318 <span class="summary-type"> </span>
319 </td><td class="summary">
320 <table width="100%" cellpadding="0" cellspacing="0" border="0">
322 <td><span class="summary-sig"><a name="_escape_attrib_html"></a><span class="summary-sig-name">_escape_attrib_html</span>(<span class="summary-sig-arg">text</span>,
323 <span class="summary-sig-arg">encoding</span>)</span></td>
324 <td align="right" valign="top">
325 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#_escape_attrib_html">source code</a></span>
334 <td width="15%" align="right" valign="top" class="summary">
335 <span class="summary-type"> </span>
336 </td><td class="summary">
337 <table width="100%" cellpadding="0" cellspacing="0" border="0">
339 <td><span class="summary-sig"><a name="_escape_cdata"></a><span class="summary-sig-name">_escape_cdata</span>(<span class="summary-sig-arg">text</span>,
340 <span class="summary-sig-arg">encoding</span>)</span></td>
341 <td align="right" valign="top">
342 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#_escape_cdata">source code</a></span>
351 <td width="15%" align="right" valign="top" class="summary">
352 <span class="summary-type"> </span>
353 </td><td class="summary">
354 <table width="100%" cellpadding="0" cellspacing="0" border="0">
356 <td><span class="summary-sig"><a name="_namespaces"></a><span class="summary-sig-name">_namespaces</span>(<span class="summary-sig-arg">elem</span>,
357 <span class="summary-sig-arg">encoding</span>,
358 <span class="summary-sig-arg">default_namespace</span>=<span class="summary-sig-default">None</span>)</span></td>
359 <td align="right" valign="top">
360 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#_namespaces">source code</a></span>
369 <td width="15%" align="right" valign="top" class="summary">
370 <span class="summary-type"> </span>
371 </td><td class="summary">
372 <table width="100%" cellpadding="0" cellspacing="0" border="0">
374 <td><span class="summary-sig"><a name="_raise_serialization_error"></a><span class="summary-sig-name">_raise_serialization_error</span>(<span class="summary-sig-arg">text</span>)</span></td>
375 <td align="right" valign="top">
376 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#_raise_serialization_error">source code</a></span>
385 <td width="15%" align="right" valign="top" class="summary">
386 <span class="summary-type"> </span>
387 </td><td class="summary">
388 <table width="100%" cellpadding="0" cellspacing="0" border="0">
390 <td><span class="summary-sig"><a name="_serialize_html"></a><span class="summary-sig-name">_serialize_html</span>(<span class="summary-sig-arg">write</span>,
391 <span class="summary-sig-arg">elem</span>,
392 <span class="summary-sig-arg">encoding</span>,
393 <span class="summary-sig-arg">qnames</span>,
394 <span class="summary-sig-arg">namespaces</span>)</span></td>
395 <td align="right" valign="top">
396 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#_serialize_html">source code</a></span>
405 <td width="15%" align="right" valign="top" class="summary">
406 <span class="summary-type"> </span>
407 </td><td class="summary">
408 <table width="100%" cellpadding="0" cellspacing="0" border="0">
410 <td><span class="summary-sig"><a name="_serialize_text"></a><span class="summary-sig-name">_serialize_text</span>(<span class="summary-sig-arg">write</span>,
411 <span class="summary-sig-arg">elem</span>,
412 <span class="summary-sig-arg">encoding</span>)</span></td>
413 <td align="right" valign="top">
414 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#_serialize_text">source code</a></span>
423 <td width="15%" align="right" valign="top" class="summary">
424 <span class="summary-type"> </span>
425 </td><td class="summary">
426 <table width="100%" cellpadding="0" cellspacing="0" border="0">
428 <td><span class="summary-sig"><a name="_serialize_xml"></a><span class="summary-sig-name">_serialize_xml</span>(<span class="summary-sig-arg">write</span>,
429 <span class="summary-sig-arg">elem</span>,
430 <span class="summary-sig-arg">encoding</span>,
431 <span class="summary-sig-arg">qnames</span>,
432 <span class="summary-sig-arg">namespaces</span>)</span></td>
433 <td align="right" valign="top">
434 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#_serialize_xml">source code</a></span>
443 <td width="15%" align="right" valign="top" class="summary">
444 <span class="summary-type"> </span>
445 </td><td class="summary">
446 <table width="100%" cellpadding="0" cellspacing="0" border="0">
448 <td><span class="summary-sig"><a name="dump"></a><span class="summary-sig-name">dump</span>(<span class="summary-sig-arg">elem</span>)</span></td>
449 <td align="right" valign="top">
450 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#dump">source code</a></span>
459 <td width="15%" align="right" valign="top" class="summary">
460 <span class="summary-type"> </span>
461 </td><td class="summary">
462 <table width="100%" cellpadding="0" cellspacing="0" border="0">
464 <td><span class="summary-sig"><a name="fromstring"></a><span class="summary-sig-name">fromstring</span>(<span class="summary-sig-arg">text</span>,
465 <span class="summary-sig-arg">parser</span>=<span class="summary-sig-default">None</span>)</span></td>
466 <td align="right" valign="top">
467 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#XML">source code</a></span>
476 <td width="15%" align="right" valign="top" class="summary">
477 <span class="summary-type"> </span>
478 </td><td class="summary">
479 <table width="100%" cellpadding="0" cellspacing="0" border="0">
481 <td><span class="summary-sig"><a name="fromstringlist"></a><span class="summary-sig-name">fromstringlist</span>(<span class="summary-sig-arg">sequence</span>,
482 <span class="summary-sig-arg">parser</span>=<span class="summary-sig-default">None</span>)</span></td>
483 <td align="right" valign="top">
484 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#fromstringlist">source code</a></span>
493 <td width="15%" align="right" valign="top" class="summary">
494 <span class="summary-type"> </span>
495 </td><td class="summary">
496 <table width="100%" cellpadding="0" cellspacing="0" border="0">
498 <td><span class="summary-sig"><a name="iselement"></a><span class="summary-sig-name">iselement</span>(<span class="summary-sig-arg">element</span>)</span></td>
499 <td align="right" valign="top">
500 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#iselement">source code</a></span>
509 <td width="15%" align="right" valign="top" class="summary">
510 <span class="summary-type"> </span>
511 </td><td class="summary">
512 <table width="100%" cellpadding="0" cellspacing="0" border="0">
514 <td><span class="summary-sig"><a name="iterparse"></a><span class="summary-sig-name">iterparse</span>(<span class="summary-sig-arg">source</span>,
515 <span class="summary-sig-arg">events</span>=<span class="summary-sig-default">None</span>,
516 <span class="summary-sig-arg">parser</span>=<span class="summary-sig-default">None</span>)</span></td>
517 <td align="right" valign="top">
518 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#iterparse">source code</a></span>
527 <td width="15%" align="right" valign="top" class="summary">
528 <span class="summary-type"> </span>
529 </td><td class="summary">
530 <table width="100%" cellpadding="0" cellspacing="0" border="0">
532 <td><span class="summary-sig"><a name="parse"></a><span class="summary-sig-name">parse</span>(<span class="summary-sig-arg">source</span>,
533 <span class="summary-sig-arg">parser</span>=<span class="summary-sig-default">None</span>)</span></td>
534 <td align="right" valign="top">
535 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#parse">source code</a></span>
544 <td width="15%" align="right" valign="top" class="summary">
545 <span class="summary-type"> </span>
546 </td><td class="summary">
547 <table width="100%" cellpadding="0" cellspacing="0" border="0">
549 <td><span class="summary-sig"><a name="register_namespace"></a><span class="summary-sig-name">register_namespace</span>(<span class="summary-sig-arg">prefix</span>,
550 <span class="summary-sig-arg">uri</span>)</span></td>
551 <td align="right" valign="top">
552 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#register_namespace">source code</a></span>
561 <td width="15%" align="right" valign="top" class="summary">
562 <span class="summary-type"> </span>
563 </td><td class="summary">
564 <table width="100%" cellpadding="0" cellspacing="0" border="0">
566 <td><span class="summary-sig"><a name="tostring"></a><span class="summary-sig-name">tostring</span>(<span class="summary-sig-arg">element</span>,
567 <span class="summary-sig-arg">encoding</span>=<span class="summary-sig-default">None</span>,
568 <span class="summary-sig-arg">method</span>=<span class="summary-sig-default">None</span>)</span></td>
569 <td align="right" valign="top">
570 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#tostring">source code</a></span>
579 <td width="15%" align="right" valign="top" class="summary">
580 <span class="summary-type"> </span>
581 </td><td class="summary">
582 <table width="100%" cellpadding="0" cellspacing="0" border="0">
584 <td><span class="summary-sig"><a name="tostringlist"></a><span class="summary-sig-name">tostringlist</span>(<span class="summary-sig-arg">element</span>,
585 <span class="summary-sig-arg">encoding</span>=<span class="summary-sig-default">None</span>,
586 <span class="summary-sig-arg">method</span>=<span class="summary-sig-default">None</span>)</span></td>
587 <td align="right" valign="top">
588 <span class="codelink"><a href="xml.etree.ElementTree-pysrc.html#tostringlist">source code</a></span>
597 <!-- ==================== VARIABLES ==================== -->
598 <a name="section-Variables"></a>
599 <table class="summary" border="1" cellpadding="3"
600 cellspacing="0" width="100%" bgcolor="white">
601 <tr bgcolor="#70b0f0" class="table-header">
602 <td colspan="2" class="table-header">
603 <table border="0" cellpadding="0" cellspacing="0" width="100%">
605 <td align="left"><span class="table-header">Variables</span></td>
606 <td align="right" valign="top"
607 ><span class="options">[<a href="#section-Variables"
608 class="privatelink" onclick="toggle_private();"
609 >hide private</a>]</span></td>
615 <td width="15%" align="right" valign="top" class="summary">
616 <span class="summary-type"> </span>
617 </td><td class="summary">
618 <a href="xml.etree.ElementTree-module.html#HTML_EMPTY" class="summary-name" onclick="show_private();">HTML_EMPTY</a> = <code title="set(['area',
626 ..."><code class="variable-group">set([</code><code class="variable-quote">'</code><code class="variable-string">area</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">base</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">basefont</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">br</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">col</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">fr</code><code class="variable-ellipsis">...</code></code>
630 <td width="15%" align="right" valign="top" class="summary">
631 <span class="summary-type"> </span>
632 </td><td class="summary">
633 <a name="VERSION"></a><span class="summary-name">VERSION</span> = <code title="'1.3.0'"><code class="variable-quote">'</code><code class="variable-string">1.3.0</code><code class="variable-quote">'</code></code>
637 <td width="15%" align="right" valign="top" class="summary">
638 <span class="summary-type"> </span>
639 </td><td class="summary">
640 <a name="__package__"></a><span class="summary-name">__package__</span> = <code title="'xml.etree'"><code class="variable-quote">'</code><code class="variable-string">xml.etree</code><code class="variable-quote">'</code></code>
644 <td width="15%" align="right" valign="top" class="summary">
645 <span class="summary-type"> </span>
646 </td><td class="summary">
647 <a href="xml.etree.ElementTree-module.html#_namespace_map" class="summary-name" onclick="show_private();">_namespace_map</a> = <code title="{'http://purl.org/dc/elements/1.1/': 'dc',
648 'http://schemas.xmlsoap.org/wsdl/': 'wsdl',
649 'http://www.w3.org/1999/02/22-rdf-syntax-ns#': 'rdf',
650 'http://www.w3.org/1999/xhtml': 'html',
651 'http://www.w3.org/2001/XMLSchema': 'xs',
652 'http://www.w3.org/2001/XMLSchema-instance': 'xsi',
653 'http://www.w3.org/XML/1998/namespace': 'xml'}"><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">http://purl.org/dc/elements/1.1/</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">dc</code><code class="variable-quote">'</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">h</code><code class="variable-ellipsis">...</code></code>
657 <td width="15%" align="right" valign="top" class="summary">
658 <span class="summary-type"> </span>
659 </td><td class="summary">
660 <a href="xml.etree.ElementTree-module.html#_serialize" class="summary-name" onclick="show_private();">_serialize</a> = <code title="{'html': <function _serialize_html at 0x1affd70>,
661 'text': <function _serialize_text at 0x1affde8>,
662 'xml': <function _serialize_xml at 0x1affcf8>}"><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">html</code><code class="variable-quote">'</code><code class="variable-op">: </code><function _serialize_html at 0x1affd70><code class="variable-op">,</code><code class="variable-ellipsis">...</code></code>
666 <!-- ==================== VARIABLES DETAILS ==================== -->
667 <a name="section-VariablesDetails"></a>
668 <table class="details" border="1" cellpadding="3"
669 cellspacing="0" width="100%" bgcolor="white">
670 <tr bgcolor="#70b0f0" class="table-header">
671 <td colspan="2" class="table-header">
672 <table border="0" cellpadding="0" cellspacing="0" width="100%">
674 <td align="left"><span class="table-header">Variables Details</span></td>
675 <td align="right" valign="top"
676 ><span class="options">[<a href="#section-VariablesDetails"
677 class="privatelink" onclick="toggle_private();"
678 >hide private</a>]</span></td>
684 <a name="HTML_EMPTY"></a>
685 <div class="private">
686 <table class="details" border="1" cellpadding="3"
687 cellspacing="0" width="100%" bgcolor="white">
689 <h3 class="epydoc">HTML_EMPTY</h3>
695 <dd><table><tr><td><pre class="variable">
696 <code class="variable-group">set([</code><code class="variable-quote">'</code><code class="variable-string">area</code><code class="variable-quote">'</code><code class="variable-op">,</code>
697 <code class="variable-quote">'</code><code class="variable-string">base</code><code class="variable-quote">'</code><code class="variable-op">,</code>
698 <code class="variable-quote">'</code><code class="variable-string">basefont</code><code class="variable-quote">'</code><code class="variable-op">,</code>
699 <code class="variable-quote">'</code><code class="variable-string">br</code><code class="variable-quote">'</code><code class="variable-op">,</code>
700 <code class="variable-quote">'</code><code class="variable-string">col</code><code class="variable-quote">'</code><code class="variable-op">,</code>
701 <code class="variable-quote">'</code><code class="variable-string">frame</code><code class="variable-quote">'</code><code class="variable-op">,</code>
702 <code class="variable-quote">'</code><code class="variable-string">hr</code><code class="variable-quote">'</code><code class="variable-op">,</code>
703 <code class="variable-quote">'</code><code class="variable-string">img</code><code class="variable-quote">'</code><code class="variable-op">,</code>
704 <code class="variable-ellipsis">...</code>
705 </pre></td></tr></table>
710 <a name="_namespace_map"></a>
711 <div class="private">
712 <table class="details" border="1" cellpadding="3"
713 cellspacing="0" width="100%" bgcolor="white">
715 <h3 class="epydoc">_namespace_map</h3>
721 <dd><table><tr><td><pre class="variable">
722 <code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">http://purl.org/dc/elements/1.1/</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">dc</code><code class="variable-quote">'</code><code class="variable-op">,</code>
723 <code class="variable-quote">'</code><code class="variable-string">http://schemas.xmlsoap.org/wsdl/</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">wsdl</code><code class="variable-quote">'</code><code class="variable-op">,</code>
724 <code class="variable-quote">'</code><code class="variable-string">http://www.w3.org/1999/02/22-rdf-syntax-ns#</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">rdf</code><code class="variable-quote">'</code><code class="variable-op">,</code>
725 <code class="variable-quote">'</code><code class="variable-string">http://www.w3.org/1999/xhtml</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">html</code><code class="variable-quote">'</code><code class="variable-op">,</code>
726 <code class="variable-quote">'</code><code class="variable-string">http://www.w3.org/2001/XMLSchema</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">xs</code><code class="variable-quote">'</code><code class="variable-op">,</code>
727 <code class="variable-quote">'</code><code class="variable-string">http://www.w3.org/2001/XMLSchema-instance</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">xsi</code><code class="variable-quote">'</code><code class="variable-op">,</code>
728 <code class="variable-quote">'</code><code class="variable-string">http://www.w3.org/XML/1998/namespace</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">xml</code><code class="variable-quote">'</code><code class="variable-group">}</code>
729 </pre></td></tr></table>
734 <a name="_serialize"></a>
735 <div class="private">
736 <table class="details" border="1" cellpadding="3"
737 cellspacing="0" width="100%" bgcolor="white">
739 <h3 class="epydoc">_serialize</h3>
745 <dd><table><tr><td><pre class="variable">
746 <code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">html</code><code class="variable-quote">'</code><code class="variable-op">: </code><function _serialize_html at 0x1affd70><code class="variable-op">,</code>
747 <code class="variable-quote">'</code><code class="variable-string">text</code><code class="variable-quote">'</code><code class="variable-op">: </code><function _serialize_text at 0x1affde8><code class="variable-op">,</code>
748 <code class="variable-quote">'</code><code class="variable-string">xml</code><code class="variable-quote">'</code><code class="variable-op">: </code><function _serialize_xml at 0x1affcf8><code class="variable-group">}</code>
749 </pre></td></tr></table>
755 <!-- ==================== NAVIGATION BAR ==================== -->
756 <table class="navbar" border="0" width="100%" cellpadding="0"
757 bgcolor="#a0c0ff" cellspacing="0">
760 <th> <a
761 href="lxml-module.html">Home</a> </th>
764 <th> <a
765 href="module-tree.html">Trees</a> </th>
768 <th> <a
769 href="identifier-index.html">Indices</a> </th>
772 <th> <a
773 href="help.html">Help</a> </th>
775 <!-- Project homepage -->
776 <th class="navbar" align="right" width="100%">
777 <table border="0" cellpadding="0" cellspacing="0">
778 <tr><th class="navbar" align="center"
779 ><a class="navbar" target="_top" href="/">lxml API</a></th>
783 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
785 <td align="left" class="footer">
786 Generated by Epydoc 3.0.1 on Tue Jul 31 10:14:18 2012
788 <td align="right" class="footer">
789 <a target="mainFrame" href="http://epydoc.sourceforge.net"
790 >http://epydoc.sourceforge.net</a>
795 <script type="text/javascript">
797 // Private objects are initially displayed (because if
798 // javascript is turned off then we want them to be
799 // visible); but by default, we want to hide them. So hide
800 // them unless we have a cookie that says to show them.