Stefan Behnel added the comment:
Duplicate of issue 9521 (and issue 24287).
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> xml.etree.ElementTree skips processing instructions when parsing
___
Python tracker
New submission from yucheng chen :
issue8277
It couldn't work for those comments before the root element.
It will raise an error that "xml.etree.ElementTree.ParseError: multiple
elements on top level".
Example:
test.xml
test.py
---
from xml.etree import ElementTre