Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #37543 > unrolled thread

Re: XML/XHTML/HTML differences, bugs... and howto

Started byAndrew Robinson <andrew3@r3dsolutions.com>
First post2013-01-23 23:32 +0000
Last post2013-01-23 23:32 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: XML/XHTML/HTML differences, bugs... and howto Andrew Robinson <andrew3@r3dsolutions.com> - 2013-01-23 23:32 +0000

#37543 — Re: XML/XHTML/HTML differences, bugs... and howto

FromAndrew Robinson <andrew3@r3dsolutions.com>
Date2013-01-23 23:32 +0000
SubjectRe: XML/XHTML/HTML differences, bugs... and howto
Message-ID<mailman.946.1359012888.2939.python-list@python.org>
On 01/24/2013 06:42 AM, Stefan Behnel wrote:
> Andrew Robinson, 23.01.2013 16:22:
>> Good day :),
> Nope, you should read the manual on this. Here's a tutorial:
>
> http://lxml.de/tutorial.html#elements-contain-text
I see, so it should be under the "tail" attribute, not the "text" 
attribute.  That's why I missed it.

>>
>> But, I don't see a way to write portions of an XML tree, or iteratively
>> write a tree to disk.
>> How can this be done?
> There are several ways to do it. Python has a couple of external libraries
> available that are made specifically for generating markup incrementally.
>
> lxml also gained that feature recently. It's not documented yet, but here
> are usage examples:
>
> https://github.com/lxml/lxml/blob/master/src/lxml/tests/test_incremental_xmlfile.py
>
> Stefan
Thanks Stefan !  I'll look that over. :)

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web