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

Discussion in 'Python' started by Andrew Robinson, Jan 23, 2013.

  1. 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. :)
     
    Andrew Robinson, Jan 23, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Wouter

    Differences XHTML - HTML

    Wouter, Aug 21, 2007, in forum: HTML
    Replies:
    7
    Views:
    400
    Andy Dingley
    Aug 21, 2007
  2. Home_Job_opportunity
    Replies:
    0
    Views:
    503
    Home_Job_opportunity
    Jan 8, 2009
  3. Josef 'Jupp' Schugt

    Still use 'ruby-bugs' for Ruby bugs?

    Josef 'Jupp' Schugt, Nov 4, 2004, in forum: Ruby
    Replies:
    2
    Views:
    163
    Tom Copeland
    Nov 4, 2004
  4. Andrew Robinson

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

    Andrew Robinson, Jan 23, 2013, in forum: Python
    Replies:
    0
    Views:
    81
    Andrew Robinson
    Jan 23, 2013
  5. Stefan Behnel
    Replies:
    0
    Views:
    132
    Stefan Behnel
    Jan 24, 2013
Loading...

Share This Page