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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/exist/trunk/python/elementtree-1.3a6-20070220-badc/docs/pythondoc-elementtree.ElementC14N.html@3578
Revision 3578, 2.7 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.ElementC14N Module</title>
6<link rel='stylesheet' href='effbot.css' type='text/css' />
7</head>
8<body>
9<h1>The elementtree.ElementC14N Module</h1>
10<dl>
11<dt><a id='elementtree.ElementC14N._find_open_uris-function' name='elementtree.ElementC14N._find_open_uris-function'><b>_find_open_uris(elem, scope, parent)</b></a> [<a href='#elementtree.ElementC14N._find_open_uris-function'>#</a>]</dt>
12<dd>
13<p>(Internal) Finds undefined URI:s in a scoped tree.</p>
14</dd>
15<dt><a id='elementtree.ElementC14N._findprefix-function' name='elementtree.ElementC14N._findprefix-function'><b>_findprefix(elem, scope, parent, uri)</b></a> [<a href='#elementtree.ElementC14N._findprefix-function'>#</a>]</dt>
16<dd>
17<p>(Internal) Finds prefix for given URI in a scoped tree.</p>
18</dd>
19<dt><a id='elementtree.ElementC14N._serialize_c14n-function' name='elementtree.ElementC14N._serialize_c14n-function'><b>_serialize_c14n(write, elem, encoding, qnames, namespaces)</b></a> [<a href='#elementtree.ElementC14N._serialize_c14n-function'>#</a>]</dt>
20<dd>
21<p>(Internal) Hook used by ElementTree's c14n output method</p>
22</dd>
23<dt><a id='elementtree.ElementC14N.parse-function' name='elementtree.ElementC14N.parse-function'><b>parse(file)</b></a> [<a href='#elementtree.ElementC14N.parse-function'>#</a>]</dt>
24<dd>
25<p>Parses an XML file, and builds a tree annotated with scope and parent
26information.  To parse from a string, use the StringIO module.</p>
27<dl>
28<dt><i>file</i></dt>
29<dd>
30A file name or file object.</dd>
31<dt>Returns:</dt>
32<dd>
33An extended ElementTree, with extra scope and parent information
34   attached to the ElementTree object.</dd>
35</dl><br />
36</dd>
37<dt><a id='elementtree.ElementC14N.write-function' name='elementtree.ElementC14N.write-function'><b>write(elem, file_or_filename, subset_element=None)</b></a> [<a href='#elementtree.ElementC14N.write-function'>#</a>]</dt>
38<dd>
39<p>Writes a canonicalized document.</p>
40<dl>
41<dt><i>elem</i></dt>
42<dd>
43Element or ElementTree.  If passed a tree created by <a class="link" href="#elementtree.ElementC14N.parse-function"><b>parse</b></a>, the function attempts to preserve existing prefixes.
44    Otherwise, new prefixes are allocated.
45</dd>
46<dt><i>file</i></dt>
47<dd>
48Output file.  Can be either a filename or a file-like object.</dd>
49<dt><i>subset_element</i></dt>
50<dd>
51Subset element.  If given, this element, and all its
52    subelements, are serialized as a subdocument, using Exclusive C14N.</dd>
53</dl><br />
54</dd>
55</dl>
56</body></html>
Note: See TracBrowser for help on using the repository browser.