Parsing files when standalone="yes"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Fix Released
|
Medium
|
scoder |
Bug Description
```python
from lxml.etree import fromstring
src = """
<?xml version="1.0" standalone="yes"?>
<externalLink xmlns="http://
<oleLink xmlns:r="http://
<oleItems>
<oleItem name="!OLE_LINK1" advise="1" preferPic="1"/>
</oleItems>
</oleLink>
</externalLink>
"""
xml = fromstring(src)
File "<string>", line 1, in ?
lxml.etree.
```
Python : sys.version_
lxml.etree : (5, 1, 0, 0)
libxml used : (2, 12, 3)
libxml compiled : (2, 12, 3)
libxslt used : (1, 1, 39)
libxslt compiled : (1, 1, 39)
I've seen this reported for python-docx and it seems to be related to changes in libXML2. But as I couldn't find anything here I'm submiting this report.
Changed in lxml: | |
status: | Confirmed → Fix Released |
This seems to have been fixed in libxml2 2.12.4: /gitlab. gnome.org/ GNOME/libxml2/ -/commit/ 1e6b17b8348f9b8 d485febaf410d2c 419d254924
https:/
I'll see that I use at least 2.12.5 in the wheels of the next release.