[Lxml-checkins] r42244 - lxml/trunk/doc
scoder at codespeak.net
scoder at codespeak.net
Sun Apr 22 21:01:43 CEST 2007
Author: scoder
Date: Sun Apr 22 21:01:36 2007
New Revision: 42244
Modified:
lxml/trunk/doc/api.txt
Log:
small cleanup in docs
Modified: lxml/trunk/doc/api.txt
==============================================================================
--- lxml/trunk/doc/api.txt (original)
+++ lxml/trunk/doc/api.txt Sun Apr 22 21:01:36 2007
@@ -271,8 +271,11 @@
>>> tree = etree.parse(data)
>>> tree.xinclude()
- >>> etree.tostring(tree.getroot())
- '<doc xmlns:xi="http://www.w3.org/2001/XInclude">\n<foo/>\n<a xml:base="doc/test.xml"/>\n</doc>'
+ >>> print etree.tostring(tree.getroot())
+ <doc xmlns:xi="http://www.w3.org/2001/XInclude">
+ <foo/>
+ <a xml:base="doc/test.xml"/>
+ </doc>
Note that the ElementTree compatible ElementInclude_ module is also supported
as ``lxml.ElementInclude``. It has the additional advantage of supporting
More information about the lxml-checkins
mailing list