[Lxml-checkins] r50291 - in lxml/trunk: . doc
scoder at codespeak.net
scoder at codespeak.net
Thu Jan 3 18:22:39 CET 2008
Author: scoder
Date: Thu Jan 3 18:22:38 2008
New Revision: 50291
Modified:
lxml/trunk/ (props changed)
lxml/trunk/doc/FAQ.txt
Log:
r3203 at delle: sbehnel | 2008-01-03 18:22:27 +0100
FAQ update
Modified: lxml/trunk/doc/FAQ.txt
==============================================================================
--- lxml/trunk/doc/FAQ.txt (original)
+++ lxml/trunk/doc/FAQ.txt Thu Jan 3 18:22:38 2008
@@ -42,6 +42,7 @@
6.2 Why can't lxml parse my XML from unicode strings?
6.3 What is the difference between str(xslt(doc)) and xslt(doc).write() ?
6.4 Why can't I just delete parents or clear the root node in iterparse()?
+ 6.5 How do I output null bytes in XML text?
7 XPath and Document Traversal
7.1 What are the ``findall()`` and ``xpath()`` methods on Element(Tree)?
7.2 Why doesn't ``findall()`` support full XPath expressions?
@@ -608,6 +609,15 @@
.. _`iterparse section`: api.html#iterparse-and-iterwalk
+How do I output null bytes in XML text?
+---------------------------------------
+
+Don't. What you would produce is not well-formed XML. XML parsers
+will refuse to parse a document that contains null bytes. The right
+way to embed binary data in XML is using a text encoding such as
+uuencode or base64.
+
+
XPath and Document Traversal
============================
More information about the lxml-checkins
mailing list