[issue9521] xml.etree.ElementTree strips XML declaration and procesing instructions

2014-01-18 Thread Nikolaus Rath
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

[issue9521] xml.etree.ElementTree strips XML declaration and procesing instructions

2010-08-05 Thread Mark Summerfield
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

[issue9521] xml.etree.ElementTree strips XML declaration and procesing instructions

2010-08-05 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +effbot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9521 ___ ___ Python-bugs-list