Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 949b676db3
Fetching contributors…

Cannot retrieve contributors at this time

51 lines (50 sloc) 2.196 kb
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=us-ascii' />
<title>The elementtree.SimpleXMLTreeBuilder Module</title>
<link rel='stylesheet' href='effbot.css' type='text/css' />
</head>
<body>
<h1>The elementtree.SimpleXMLTreeBuilder Module</h1>
<p>Tools to build element trees from XML files, using <b>xmllib</b>.
This module can be used instead of the standard tree builder, for
Python versions where "expat" is not available (such as 1.5.2).
</p><p>
Note that due to bugs in <b>xmllib</b>, the namespace support is
not reliable (you can run the module as a script to find out exactly
how unreliable it is on your Python version).
</p><h2>Module Contents</h2>
<dl>
<dt><b>TreeBuilder(html=0)</b> (class) [<a href='#elementtree.SimpleXMLTreeBuilder.TreeBuilder-class'>#</a>]</dt>
<dd>
<p>ElementTree builder for XML source data.</p>
<p>For more information about this class, see <a href='#elementtree.SimpleXMLTreeBuilder.TreeBuilder-class'><i>The TreeBuilder Class</i></a>.</p>
</dd>
</dl>
<h2><a id='elementtree.SimpleXMLTreeBuilder.TreeBuilder-class' name='elementtree.SimpleXMLTreeBuilder.TreeBuilder-class'>The TreeBuilder Class</a></h2>
<dl>
<dt><b>TreeBuilder(html=0)</b> (class) [<a href='#elementtree.SimpleXMLTreeBuilder.TreeBuilder-class'>#</a>]</dt>
<dd>
<p>ElementTree builder for XML source data.</p>
</dd>
<dt><a id='elementtree.SimpleXMLTreeBuilder.TreeBuilder.close-method' name='elementtree.SimpleXMLTreeBuilder.TreeBuilder.close-method'><b>close()</b></a> &rArr; Element [<a href='#elementtree.SimpleXMLTreeBuilder.TreeBuilder.close-method'>#</a>]</dt>
<dd>
<p>Finishes feeding data to the parser.</p>
<dl>
<dt>Returns:</dt>
<dd>
An element structure.</dd>
</dl><br />
</dd>
<dt><a id='elementtree.SimpleXMLTreeBuilder.TreeBuilder.feed-method' name='elementtree.SimpleXMLTreeBuilder.TreeBuilder.feed-method'><b>feed(data)</b></a> [<a href='#elementtree.SimpleXMLTreeBuilder.TreeBuilder.feed-method'>#</a>]</dt>
<dd>
<p>Feeds data to the parser.</p>
<dl>
<dt><i>data</i></dt>
<dd>
Encoded data.</dd>
</dl><br />
</dd>
</dl>
</body></html>
Jump to Line
Something went wrong with that request. Please try again.