lxml is a Pythonic, mature 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.
In case you want to use the current in-development version of lxml, you can get it from the subversion repository at http://codespeak.net/svn/lxml/trunk . Running easy_install lxml==dev will install it from http://codespeak.net/svn/lxml/trunk#egg=lxml-dev
Current bug fixes for the stable version are at http://codespeak.net/svn/lxml/branch/lxml-1.3 . Running easy_install lxml==1.3bugfix will install this version from http://codespeak.net/svn/lxml/branch/lxml-1.3#egg=lxml-1.3bugfix
1.3.4 (2007-08-30)
Features added
The ElementMaker in lxml.builder now accepts the keyword arguments namespace and nsmap to set a namespace and nsmap for the Elements it creates.
The docinfo on ElementTree objects has new properties internalDTD and externalDTD that return a DTD object for the internal or external subset of the document respectively.
Serialising an ElementTree now includes any internal DTD subsets that are part of the document, as well as comments and PIs that are siblings of the root node.
Bugs fixed
Parsing with the no_network option could fail
Other changes
lxml now raises a TagNameWarning about tag names containing ‘:’ instead of an Error as 1.3.3 did. The reason is that a number of projects currently misuse the previous lack of tag name validation to generate namespace prefixes without declaring namespaces. Apart from the danger of generating broken XML this way, it also breaks most of the namespace-aware tools in XML, including XPath, XSLT and validation. lxml 1.3.x will continue to support this bug with a Warning, while lxml 2.0 will be strict about well-formed tag names (not only regarding ‘:’).
Serialising an Element no longer includes its comment and PI siblings (only ElementTree serialisation includes them).
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lxml-1.3.4.tar.gz.
File metadata
- Download URL: lxml-1.3.4.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fadec22d2eafd1f66481cb785790e3cc96c9a113e9306d132dee3801437269f8
|
|
| MD5 |
dba0efc2da3e7b0e58827279767ba414
|
|
| BLAKE2b-256 |
b805358a792da9fc5fc349b3f991984eb8fc7763e2e5e67f404ca657f19564de
|
File details
Details for the file lxml-1.3.4.win32-py2.5.exe.
File metadata
- Download URL: lxml-1.3.4.win32-py2.5.exe
- Upload date:
- Size: 3.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f62c6133b7c6b543935e968da27467e869fb3b761aaa91c54399e919c8f728b
|
|
| MD5 |
0ac70b7ed1be6df801508c9ef625f935
|
|
| BLAKE2b-256 |
a4c122d1ecbba4b9acb6188012e53994ec0c80d791b34e1d0131fe43e8528dfa
|
File details
Details for the file lxml-1.3.4.win32-py2.4.exe.
File metadata
- Download URL: lxml-1.3.4.win32-py2.4.exe
- Upload date:
- Size: 3.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6305f40dd86bb97e707501873dc5adef7b2555cee40676745664fad90924fff6
|
|
| MD5 |
3007a5b7556d5115e34da2e220630d1d
|
|
| BLAKE2b-256 |
efbdeec62a1cb3d94bba14fe55e64f63e55f7ab697cc33c05224918ad5ad5618
|
File details
Details for the file lxml-1.3.4-py2.5-win32.egg.
File metadata
- Download URL: lxml-1.3.4-py2.5-win32.egg
- Upload date:
- Size: 3.0 MB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50c190e0f2a3b3913fe989ea1c6fd869ffd87f39b3933fab11f1dbd577c94897
|
|
| MD5 |
ca73864551c90e49c1f96985919c41f7
|
|
| BLAKE2b-256 |
74be61f2edcb05e978ff8af1a76f186b86b883a5c4e00b5007458795bbd94b51
|
File details
Details for the file lxml-1.3.4-py2.4-win32.egg.
File metadata
- Download URL: lxml-1.3.4-py2.4-win32.egg
- Upload date:
- Size: 3.0 MB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8d6b1500f31bbfa7823b3e1a8afdcce2b5d12379f559bbfdfac0c19896e6a95
|
|
| MD5 |
e3a61f6492f79f77d1765909651e769a
|
|
| BLAKE2b-256 |
f395a8166c31820050b1ab5b6ef3c50f4143448778bc46a19f6b0950ff3f76da
|