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>lxml.etree._AppendOnlyElementProxy</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">
45 <a href="lxml-module.html">Package lxml</a> ::
46 <a href="lxml.etree-module.html">Module etree</a> ::
47 Class _AppendOnlyElementProxy
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="lxml.etree._AppendOnlyElementProxy-class.html"
58 target="_top">no frames</a>]</span></td></tr>
63 <!-- ==================== CLASS DESCRIPTION ==================== -->
64 <h1 class="epydoc">Class _AppendOnlyElementProxy</h1><p class="nomargin-top"></p>
65 <pre class="base-tree">
68 <a href="lxml.etree._ReadOnlyProxy-class.html" onclick="show_private();">_ReadOnlyProxy</a> --+
70 <a href="lxml.etree._ReadOnlyElementProxy-class.html" onclick="show_private();">_ReadOnlyElementProxy</a> --+
72 <strong class="uidshort">_AppendOnlyElementProxy</strong>
76 A read-only element that allows adding children and changing the
77 text content (i.e. everything that adds to the subtree).
79 <!-- ==================== INSTANCE METHODS ==================== -->
80 <a name="section-InstanceMethods"></a>
81 <table class="summary" border="1" cellpadding="3"
82 cellspacing="0" width="100%" bgcolor="white">
83 <tr bgcolor="#70b0f0" class="table-header">
84 <td colspan="2" class="table-header">
85 <table border="0" cellpadding="0" cellspacing="0" width="100%">
87 <td align="left"><span class="table-header">Instance Methods</span></td>
88 <td align="right" valign="top"
89 ><span class="options">[<a href="#section-InstanceMethods"
90 class="privatelink" onclick="toggle_private();"
91 >hide private</a>]</span></td>
97 <td width="15%" align="right" valign="top" class="summary">
98 <span class="summary-type">a new object with type S, a subtype of T</span>
99 </td><td class="summary">
100 <table width="100%" cellpadding="0" cellspacing="0" border="0">
102 <td><span class="summary-sig"><a href="lxml.etree._AppendOnlyElementProxy-class.html#__new__" class="summary-sig-name">__new__</a>(<span class="summary-sig-arg">T</span>,
103 <span class="summary-sig-arg">S</span>,
104 <span class="summary-sig-arg">...</span>)</span></td>
105 <td align="right" valign="top">
115 <td width="15%" align="right" valign="top" class="summary">
116 <span class="summary-type"> </span>
117 </td><td class="summary">
118 <table width="100%" cellpadding="0" cellspacing="0" border="0">
120 <td><span class="summary-sig"><a name="append"></a><span class="summary-sig-name">append</span>(<span class="summary-sig-arg">...</span>)</span><br />
121 Append a copy of an Element to the list of children.</td>
122 <td align="right" valign="top">
132 <td width="15%" align="right" valign="top" class="summary">
133 <span class="summary-type"> </span>
134 </td><td class="summary">
135 <table width="100%" cellpadding="0" cellspacing="0" border="0">
137 <td><span class="summary-sig"><a name="extend"></a><span class="summary-sig-name">extend</span>(<span class="summary-sig-arg">...</span>)</span><br />
138 Append a copy of all Elements from a sequence to the list of
140 <td align="right" valign="top">
150 <td colspan="2" class="summary">
151 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.etree._ReadOnlyElementProxy-class.html" onclick="show_private();">_ReadOnlyElementProxy</a></code></b>:
152 <code><a href="lxml.etree._ReadOnlyElementProxy-class.html#get">get</a></code>,
153 <code><a href="lxml.etree._ReadOnlyElementProxy-class.html#items">items</a></code>,
154 <code><a href="lxml.etree._ReadOnlyElementProxy-class.html#keys">keys</a></code>,
155 <code><a href="lxml.etree._ReadOnlyElementProxy-class.html#values">values</a></code>
157 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.etree._ReadOnlyProxy-class.html" onclick="show_private();">_ReadOnlyProxy</a></code></b>:
158 <code><a href="lxml.etree._ReadOnlyProxy-class.html#__copy__">__copy__</a></code>,
159 <code><a href="lxml.etree._ReadOnlyProxy-class.html#__deepcopy__">__deepcopy__</a></code>,
160 <code><a href="lxml.etree._ReadOnlyProxy-class.html#__getitem__">__getitem__</a></code>,
161 <code><a href="lxml.etree._ReadOnlyProxy-class.html#__iter__">__iter__</a></code>,
162 <code><a href="lxml.etree._ReadOnlyProxy-class.html#__len__">__len__</a></code>,
163 <code><a href="lxml.etree._ReadOnlyProxy-class.html#__nonzero__">__nonzero__</a></code>,
164 <code><a href="lxml.etree._ReadOnlyProxy-class.html#__repr__">__repr__</a></code>,
165 <code><a href="lxml.etree._ReadOnlyProxy-class.html#getchildren">getchildren</a></code>,
166 <code><a href="lxml.etree._ReadOnlyProxy-class.html#getnext">getnext</a></code>,
167 <code><a href="lxml.etree._ReadOnlyProxy-class.html#getparent">getparent</a></code>,
168 <code><a href="lxml.etree._ReadOnlyProxy-class.html#getprevious">getprevious</a></code>,
169 <code><a href="lxml.etree._ReadOnlyProxy-class.html#iterchildren">iterchildren</a></code>
171 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
172 <code>__delattr__</code>,
173 <code>__format__</code>,
174 <code>__getattribute__</code>,
175 <code>__hash__</code>,
176 <code>__init__</code>,
177 <code>__reduce__</code>,
178 <code>__reduce_ex__</code>,
179 <code>__setattr__</code>,
180 <code>__sizeof__</code>,
181 <code>__str__</code>,
182 <code>__subclasshook__</code>
187 <!-- ==================== PROPERTIES ==================== -->
188 <a name="section-Properties"></a>
189 <table class="summary" border="1" cellpadding="3"
190 cellspacing="0" width="100%" bgcolor="white">
191 <tr bgcolor="#70b0f0" class="table-header">
192 <td colspan="2" class="table-header">
193 <table border="0" cellpadding="0" cellspacing="0" width="100%">
195 <td align="left"><span class="table-header">Properties</span></td>
196 <td align="right" valign="top"
197 ><span class="options">[<a href="#section-Properties"
198 class="privatelink" onclick="toggle_private();"
199 >hide private</a>]</span></td>
205 <td width="15%" align="right" valign="top" class="summary">
206 <span class="summary-type"> </span>
207 </td><td class="summary">
208 <a name="text"></a><span class="summary-name">text</span><br />
209 Text before the first subelement. This is either a string or the
210 value None, if there was no text.
214 <td colspan="2" class="summary">
215 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.etree._ReadOnlyElementProxy-class.html" onclick="show_private();">_ReadOnlyElementProxy</a></code></b>:
216 <code><a href="lxml.etree._ReadOnlyElementProxy-class.html#attrib">attrib</a></code>,
217 <code><a href="lxml.etree._ReadOnlyElementProxy-class.html#prefix">prefix</a></code>
219 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.etree._ReadOnlyProxy-class.html" onclick="show_private();">_ReadOnlyProxy</a></code></b>:
220 <code><a href="lxml.etree._ReadOnlyProxy-class.html#sourceline">sourceline</a></code>,
221 <code><a href="lxml.etree._ReadOnlyProxy-class.html#tag">tag</a></code>,
222 <code><a href="lxml.etree._ReadOnlyProxy-class.html#tail">tail</a></code>
224 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
225 <code>__class__</code>
230 <!-- ==================== METHOD DETAILS ==================== -->
231 <a name="section-MethodDetails"></a>
232 <table class="details" border="1" cellpadding="3"
233 cellspacing="0" width="100%" bgcolor="white">
234 <tr bgcolor="#70b0f0" class="table-header">
235 <td colspan="2" class="table-header">
236 <table border="0" cellpadding="0" cellspacing="0" width="100%">
238 <td align="left"><span class="table-header">Method Details</span></td>
239 <td align="right" valign="top"
240 ><span class="options">[<a href="#section-MethodDetails"
241 class="privatelink" onclick="toggle_private();"
242 >hide private</a>]</span></td>
248 <a name="__new__"></a>
250 <table class="details" border="1" cellpadding="3"
251 cellspacing="0" width="100%" bgcolor="white">
253 <table width="100%" cellpadding="0" cellspacing="0" border="0">
254 <tr valign="top"><td>
255 <h3 class="epydoc"><span class="sig"><span class="sig-name">__new__</span>(<span class="sig-arg">T</span>,
256 <span class="sig-arg">S</span>,
257 <span class="sig-arg">...</span>)</span>
259 </td><td align="right" valign="top"
266 <dt>Returns: a new object with type S, a subtype of T</dt>
274 <!-- ==================== NAVIGATION BAR ==================== -->
275 <table class="navbar" border="0" width="100%" cellpadding="0"
276 bgcolor="#a0c0ff" cellspacing="0">
279 <th> <a
280 href="lxml-module.html">Home</a> </th>
283 <th> <a
284 href="module-tree.html">Trees</a> </th>
287 <th> <a
288 href="identifier-index.html">Indices</a> </th>
291 <th> <a
292 href="help.html">Help</a> </th>
294 <!-- Project homepage -->
295 <th class="navbar" align="right" width="100%">
296 <table border="0" cellpadding="0" cellspacing="0">
297 <tr><th class="navbar" align="center"
298 ><a class="navbar" target="_top" href="/">lxml API</a></th>
302 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
304 <td align="left" class="footer">
305 Generated by Epydoc 3.0.1 on Tue Jul 31 10:14:18 2012
307 <td align="right" class="footer">
308 <a target="mainFrame" href="http://epydoc.sourceforge.net"
309 >http://epydoc.sourceforge.net</a>
314 <script type="text/javascript">
316 // Private objects are initially displayed (because if
317 // javascript is turned off then we want them to be
318 // visible); but by default, we want to hide them. So hide
319 // them unless we have a cookie that says to show them.