Nikolaus Rath added the comment:
I can confirm this. The actual problem is that neither XML nor SGML PIs in the
input make it into the etree, and no events are generated for them during
incremental parsing.
XML PIs that are added into the tree using Python functions are correctly
written
New submission from Mark Summerfield m...@qtrac.eu:
If you read in an XML file using xml.etree.ElementTree.parse() and then write
it out again using xml.etree.ElementTree.write() what is written may not be the
same as what was read. In particular any XML declaration and processing
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +effbot
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9521
___
___
Python-bugs-list