Hi, I just test the python-lxml-3.2.1-1 and the problem still persists.
Combination:
libxml2.x86_64 0:2.7.8-7.fc17
libxml2-python.x86_64 0:2.7.8-7.fc17
python-lxml.x86_64 0:2.3.5-1.fc17
== WORKS FINE ==
Combination:
libxml2.x86_64 0:2.7.8-7.fc17
libxml2-python.x86_64 0:2.7.8-7.fc17
python-lxml.x86_64 0:3.2.1-1.fc17
== WORKS FINE ==
But when I update the libxml2 and libxml2-python:
libxml2.x86_64 0:2.7.8-9.fc17
libxml2-python.x86_64 0:2.7.8-9.fc17
python-lxml.x86_64 0:3.2.1-1.fc17
== ERROR ==
Reproducer:
===========
#!/usr/bin/python
from lxml import etree
for element in etree.iterparse(open("xml.xml")):
print element[0], element[1].tag
Actual results:
end bar
end foo
end bar
end foo
end metadata
Traceback (most recent call last):
File "./reproducer.py", line 3, in <module>
for element in etree.iterparse(open("xml.xml")):
File "iterparse.pxi", line 484, in lxml.etree.iterparse.__next__ (src/lxml/lxml.etree.c:113793)
File "iterparse.pxi", line 537, in lxml.etree.iterparse._read_more_events (src/lxml/lxml.etree.c:114367)
File "parser.pxi", line 627, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:84362)
lxml.etree.XMLSyntaxError: None
(Note: line numbers slightly changed since my first report)
Expected results:
end bar
end foo
end bar
end foo
end metadata
Hi, I just test the python-lxml-3.2.1-1 and the problem still persists.
Combination: python. x86_64 0:2.7.8-7.fc17
libxml2.x86_64 0:2.7.8-7.fc17
libxml2-
python-lxml.x86_64 0:2.3.5-1.fc17
== WORKS FINE ==
Combination: python. x86_64 0:2.7.8-7.fc17
libxml2.x86_64 0:2.7.8-7.fc17
libxml2-
python-lxml.x86_64 0:3.2.1-1.fc17
== WORKS FINE ==
But when I update the libxml2 and libxml2-python: python. x86_64 0:2.7.8-9.fc17
libxml2.x86_64 0:2.7.8-9.fc17
libxml2-
python-lxml.x86_64 0:3.2.1-1.fc17
== ERROR ==
How reproducible:
XML:
====
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<foo>
<bar>a</bar>
</foo>
<foo>
<bar>b</bar>
</foo>
</metadata>
Reproducer: (open(" xml.xml" )):
===========
#!/usr/bin/python
from lxml import etree
for element in etree.iterparse
print element[0], element[1].tag
Actual results: (open(" xml.xml" )): iterparse. __next_ _ (src/lxml/ lxml.etree. c:113793) iterparse. _read_more_ events (src/lxml/ lxml.etree. c:114367) _raiseParseErro r (src/lxml/ lxml.etree. c:84362) XMLSyntaxError: None
end bar
end foo
end bar
end foo
end metadata
Traceback (most recent call last):
File "./reproducer.py", line 3, in <module>
for element in etree.iterparse
File "iterparse.pxi", line 484, in lxml.etree.
File "iterparse.pxi", line 537, in lxml.etree.
File "parser.pxi", line 627, in lxml.etree.
lxml.etree.
(Note: line numbers slightly changed since my first report)
Expected results:
end bar
end foo
end bar
end foo
end metadata