skip to navigation
skip to content

Not Logged In

lxml 1.1alpha

Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.

Latest Version: 2.2.2

lxml is a Pythonic binding for the libxml2 and libxslt libraries. It provides safe and convenient access to these libraries using the ElementTree API.

It extends the ElementTree API significantly to offer support for XPath, RelaxNG, XML Schema, XSLT, C14N and much more.

1.1alpha (2006-06-27)

Features added

  • Module level iterwalk() function as 'iterparse' for trees
  • ElementTree compatible iterparse() module function
  • Element.nsmap property returns a mapping of all namespace prefixes known at the Element to their namespace URI
  • Reentrant threading support in RelaxNG, XMLSchema and XSLT
  • Threading support in parsers and serializers:
    • All in-memory operations (tostring, parse(StringIO), etc.) free the GIL
    • File operations (on file names) free the GIL
    • Reading from file-like objects frees the GIL and reacquires it for reading
    • Serialisation to file-like objects is single-threaded (high lock overhead)
  • Element iteration over XPath axes:
    • Element.iterdescendants() iterates over the descendants of an element
    • Element.iterancestors() iterates over the ancestors of an element (from parent to parent)
    • Element.itersiblings() iterates over either the following or preceding siblings of an element
    • Element.iterchildren() iterates over the children of an element in either direction
    • All iterators support the tag keyword argument to restrict the generated elements
  • Element.getnext() and Element.getprevious() return the direct siblings of an element
File Type Py Version Uploaded on Size # downloads
lxml-1.1alpha-py2.4-linux-i686.egg (md5)
contributed by Olivier Grisel
Python Egg 2.4 2006-06-27 10:27:27 171KB 319
lxml-1.1alpha.win32-py2.4.exe (md5)
contributed by Steve Howe
MS Windows installer 2.4 2006-06-28 05:50:37 216KB 90
lxml-1.1alpha.win32-static-py2.4.exe (md5)
contributed by Steve Howe, libxml2/libxslt statically built into lxml.etree
MS Windows installer 2.4 2006-06-28 06:00:41 1MB 93
lxml-1.1alpha-py2.4-freebsd-6.1-RELEASE-i386.egg (md5)
contributed by Steve Howe
Python Egg 2.4 2006-06-28 05:53:03 189KB 316
lxml-1.1alpha-py2.4-win32.egg (md5)
contributed by Steve Howe
Python Egg 2.4 2006-06-28 05:59:27 160KB 307
lxml-1.1alpha.tar.gz (md5, pgp) Source 2006-06-27 06:39:06 402KB 129
lxml-1.1alpha-py2.3-linux-i686.egg (md5)
built on Linux-2.6.15-25-686-i686-with-glibc2.3
Python Egg 2.3 2006-06-27 16:13:25 171KB 287
lxml-1.1alpha-py2.4-static-win32.egg (md5)
contributed by Steve Howe, libxml2/libxslt statically built into lxml.etree
Python Egg 2.4 2006-06-28 05:56:15 1MB 420
lxml-1.1alpha-py2.4-linux-x86_64.egg (md5, pgp)
built on Linux-2.6.16.16-20060519111355-x86_64-with-glibc2.2.5
Python Egg 2.4 2006-06-27 06:39:16 182KB 296