source: exist/trunk/python/elementtree-1.3a6-20070220-badc/docs/pythondoc-elementtree.TidyTools.html @ 3578

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/exist/trunk/python/elementtree-1.3a6-20070220-badc/docs/pythondoc-elementtree.TidyTools.html@3578
Revision 3578, 2.1 KB checked in by pjkersha, 11 years ago (diff)

Latest releases from Fredrik Lundh. 10 March release has exclusive C14N support with namespace prefixes.

Line 
1<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
2<html>
3<head>
4<meta http-equiv='Content-Type' content='text/html; charset=us-ascii' />
5<title>The elementtree.TidyTools Module</title>
6<link rel='stylesheet' href='effbot.css' type='text/css' />
7</head>
8<body>
9<h1>The elementtree.TidyTools Module</h1>
10<p>Tools to build element trees from HTML, using the external <b>tidy</b>
11utility.
12</p><h2>Module Contents</h2>
13<dl>
14<dt><a id='elementtree.TidyTools.getbody-function' name='elementtree.TidyTools.getbody-function'><b>getbody(file, **options)</b></a> [<a href='#elementtree.TidyTools.getbody-function'>#</a>]</dt>
15<dd>
16<p>Get document body from a an HTML or HTML-like file.  This function
17uses the <b>tidy</b> function to convert HTML to XHTML, and cleans
18up the resulting XML tree.
19
20</p><dl>
21<dt><i>file</i></dt>
22<dd>
23Filename.</dd>
24<dt>Returns:</dt>
25<dd>
26A <b>body</b> element, or None if not successful.
27</dd>
28</dl><br />
29</dd>
30<dt><a id='elementtree.TidyTools.getzonebody-function' name='elementtree.TidyTools.getzonebody-function'><b>getzonebody(file, **options)</b></a> [<a href='#elementtree.TidyTools.getzonebody-function'>#</a>]</dt>
31<dd>
32<p>Same as <b>getbody</b>, but turns plain text at the start of the
33document into an H1 tag.  This function can be used to parse zone
34documents.
35
36</p><dl>
37<dt><i>file</i></dt>
38<dd>
39Filename.</dd>
40<dt>Returns:</dt>
41<dd>
42A <b>body</b> element, or None if not successful.
43</dd>
44</dl><br />
45</dd>
46<dt><a id='elementtree.TidyTools.tidy-function' name='elementtree.TidyTools.tidy-function'><b>tidy(file, new_inline_tags=None)</b></a> [<a href='#elementtree.TidyTools.tidy-function'>#</a>]</dt>
47<dd>
48<p>Convert an HTML or HTML-like file to XHTML, using the <b>tidy</b>
49command line utility.
50
51</p><dl>
52<dt><i>file</i></dt>
53<dd>
54Filename.</dd>
55<dt><i>new_inline_tags</i></dt>
56<dd>
57An optional list of valid but non-standard
58    inline tags.</dd>
59<dt>Returns:</dt>
60<dd>
61An element tree, or None if not successful.</dd>
62</dl><br />
63</dd>
64</dl>
65</body></html>
Note: See TracBrowser for help on using the repository browser.