| single |
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.
To contact the project, go to the [project home page]
or see our bug tracker at https://launchpad.net/lxml
In case you want to use the current in-development version of lxml,
you can get it from the github repository at
https://github.com/lxml/lxml . Note that this requires Cython to
build the sources, see the build instructions on the project home page.
After an official release of a new stable series, bug fixes may become
available at
https://github.com/lxml/lxml/tree/lxml-6.2 .
Running ``pip install
https://github.com/lxml/lxml/archive/refs/heads/lxml-6.2.tar.gz``
will install the unreleased branch state as soon as a maintenance branch
has been established.
Note that this requires Cython to be installed at an appropriate version
for the build.
6.2.1 (2026-11-29)
==================
This release fixes regressions in lxml 6.2.0 and covers more edge cases for
its security fixes.
Upgrading is recommended.
Bugs fixed
----------
* GH#620: Pull parsers with a parser target failed on comments and
processing instructions
when collecting comment or pi events since lxml 6.2.0.
Patch by Pierre-Yves Le Borgne.
* LP#2178248: The parser target's ``.start()`` callback method stopped
receiving a namespace
mapping dict in lxml 6.2.0 if no ``.end_ns()`` method was also provided.
* GHSA-59qx-3jjv-x996, GH#619: The fix in lxml 6.2.0 did not work with
libxml2 < 2.13, which parses entities
in a separate parser context. ``iterparse() and XMLPullParser`` could
still crash with it
on entities that fail to parse, but also on comments and PIs in entities
and on entities
that are referenced more than once.
Patch by Pierre-Yves Le Borgne.
* GHSA-59qx-3jjv-x996, GH#619: The fix in lxml 6.2.0 did not cover parsers
with ``resolve_entities=False``.
libxml2 also parses the internal entities that it does not substitute,
and ``iterparse() and
XMLPullParser`` could still crash on such entities that fail to parse.
Patch by Pierre-Yves Le Borgne.
* GHSA-59qx-3jjv-x996, GH#619: An XMLPullParser that was fed again after a
parse error reported
left-over events of the failed document, which could refer to elements
that were already freed.
Patch by Pierre-Yves Le Borgne.
* LP#2178276: The sdist was missing from the Github release upload.
|