From 4707dfcc4efe90d1ce9dceea63089e00cb278c1f Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Mon, 27 Jul 2009 05:12:43 -0400 Subject: [PATCH] promoted xmlwitch --- xml.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xml.html b/xml.html index b1104eb..ed0b46b 100755 --- a/xml.html +++ b/xml.html @@ -586,6 +586,10 @@ except ImportError:
  • You can also apply “pretty printing” to the serialization, which inserts line breaks after end tags, and after start tags of elements that contain child elements but no text content. In technical terms, lxml adds “insignificant whitespace” to make the output more readable. +
    +

    You might also want to check out xmlwitch, another third-party library for generating XML. It makes extensive use of the with statement to make XML generation code more readable. +

    +

    Parsing Broken XML

    @@ -662,7 +666,7 @@ lxml.etree.XMLSyntaxError: Entity 'hellip' not defined, line 3, column 28
  • lxml
  • Parsing XML and HTML with lxml
  • XPath and XSLT with lxml -
  • xmlwitch is another XML generation library +
  • xmlwitch