diff options
| author | scoder <none@none> | 2009-02-08 11:31:35 +0100 |
|---|---|---|
| committer | scoder <none@none> | 2009-02-08 11:31:35 +0100 |
| commit | f260ebf833575a583b9e84a53d4278a0a3b7e59f (patch) | |
| tree | 0c82cdfcc65fabeb6760dac4754f52c7ead4e0ee /doc/FAQ.txt | |
| parent | 90f66222a0dd2719e2f6db42e64607c9d52364ab (diff) | |
| download | python-lxml-f260ebf833575a583b9e84a53d4278a0a3b7e59f.tar.gz | |
[svn r4084] r4995@delle: sbehnel | 2009-02-08 11:29:41 +0100
doc link to ElementLib by Fredrik
--HG--
branch : trunk
Diffstat (limited to 'doc/FAQ.txt')
| -rw-r--r-- | doc/FAQ.txt | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/doc/FAQ.txt b/doc/FAQ.txt index f2d7ee84..ad9bf80e 100644 --- a/doc/FAQ.txt +++ b/doc/FAQ.txt @@ -70,7 +70,9 @@ improving the tutorial is a very good place to start. There is also a `tutorial for ElementTree`_ which works for ``lxml.etree``. The documentation of the `extended etree API`_ also -contains many examples for ``lxml.etree``. To learn using +contains many examples for ``lxml.etree``. Fredrik Lundh's `element +library`_ contains a lot of nice recipes that show how to solve common +tasks in ElementTree and lxml.etree. To learn using ``lxml.objectify``, read the `objectify documentation`_. John Shipman has written another tutorial called `Python XML @@ -81,7 +83,7 @@ processing with lxml`_ that contains lots of examples. .. _`extended etree API`: api.html .. _`objectify documentation`: objectify.html .. _`Python XML processing with lxml`: http://www.nmt.edu/tcc/help/pubs/pylxml/ - +.. _`element library`: http://effbot.org/zone/element-lib.htm Where can I find more documentation about lxml? ----------------------------------------------- @@ -89,9 +91,10 @@ Where can I find more documentation about lxml? There is a lot of documentation on the web and also in the Python standard library documentation, as lxml implements the well-known `ElementTree API`_ and tries to follow its documentation as closely as -possible. There are a couple of issues where lxml cannot keep up -compatibility. They are described in the compatibility_ -documentation. +possible. The recipes in Fredrik Lundh's `element library`_ are +generally worth taking a look at. There are a couple of issues where +lxml cannot keep up compatibility. They are described in the +compatibility_ documentation. The lxml specific extensions to the API are described by individual files in the ``doc`` directory of the source distribution and on `the @@ -769,6 +772,10 @@ This will allow the parser to drop blank text nodes when constructing the tree. If you now call a serialization function to pretty print this tree, lxml can add fresh whitespace to the XML tree to indent it. +Fredrik Lundh also has a Python-level function for indenting XML by +appending whitespace to tags. It can be found on his `element +library`_ recipe page. + Why can't lxml parse my XML from unicode strings? ------------------------------------------------- |
