mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 15:00:18 +00:00
promoted xmlwitch
This commit is contained in:
@@ -586,6 +586,10 @@ except ImportError:
|
||||
<li>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, <code>lxml</code> adds “insignificant whitespace” to make the output more readable.
|
||||
</ol>
|
||||
|
||||
<blockquote class=note>
|
||||
<p><span class=u>☞</span>You might also want to check out <a href=http://github.com/galvez/xmlwitch/tree/master>xmlwitch</a>, another third-party library for generating <abbr>XML</abbr>. It makes extensive use of <a href=special-method-names.html#context-managers>the <code>with</code> statement</a> to make <abbr>XML</abbr> generation code more readable.
|
||||
</blockquote>
|
||||
|
||||
<p class=a>⁂
|
||||
|
||||
<h2 id=xml-custom-parser>Parsing Broken XML</h2>
|
||||
@@ -662,7 +666,7 @@ lxml.etree.XMLSyntaxError: Entity 'hellip' not defined, line 3, column 28</samp>
|
||||
<li><a href=http://codespeak.net/lxml/><code>lxml</code></a>
|
||||
<li><a href=http://codespeak.net/lxml/1.3/parsing.html>Parsing <abbr>XML</abbr> and <abbr>HTML</abbr> with <code>lxml</code></a>
|
||||
<li><a href=http://codespeak.net/lxml/1.3/xpathxslt.html>XPath and <abbr>XSLT</abbr> with <code>lxml</code></a>
|
||||
<li><a href=http://github.com/galvez/xmlwitch/tree/master>xmlwitch</a> is another <abbr>XML</abbr> generation library
|
||||
<li><a href=http://github.com/galvez/xmlwitch/tree/master>xmlwitch</a>
|
||||
</ul>
|
||||
|
||||
<p class=v><a rel=prev href=files.html title='back to “Files”'><span class=u>☜</span></a> <a rel=next href=serializing.html title='onward to “Serializing Python Objects”'><span class=u>☞</span></a>
|
||||
|
||||
Reference in New Issue
Block a user