[Lxml-checkins] r39328 - lxml/trunk/doc
scoder at codespeak.net
scoder at codespeak.net
Fri Feb 23 10:42:03 CET 2007
Author: scoder
Date: Fri Feb 23 10:42:01 2007
New Revision: 39328
Modified:
lxml/trunk/doc/parsing.txt
Log:
note on parsing XHTML as XML
Modified: lxml/trunk/doc/parsing.txt
==============================================================================
--- lxml/trunk/doc/parsing.txt (original)
+++ lxml/trunk/doc/parsing.txt Fri Feb 23 10:42:01 2007
@@ -16,10 +16,11 @@
-------
One of the differences is the parser. There is support for both XML and
-(broken) HTML. Both are based on libxml2 and therefore only support options
-that are backed by the library. Parsers take a number of keyword arguments.
-The following is an example for namespace cleanup during parsing, first with
-the default parser, then with a parametrized one::
+(broken) HTML (note that XHTML is best parsed as XML). Both are based on
+libxml2 and therefore only support options that are backed by the library.
+Parsers take a number of keyword arguments. The following is an example for
+namespace cleanup during parsing, first with the default parser, then with a
+parametrized one::
>>> xml = '<a xmlns="test"><b xmlns="test"/></a>'
More information about the lxml-checkins
mailing list