Re: [XML-SIG] Issues with XMLTreeBuilder in cElementTree and ElementTree

2008-03-30 Thread Fredrik Lundh
Stefan Behnel wrote: > (c)ET's XMLParser has an attribute "parser" that references the expat parser > instance. It was renamed in newer versions. cElementTree doesn't use the pyexpat API, and the expat binding it uses doesn't support the ordered_attributes nonsense (*) at all. *) it's an XML

Re: [XML-SIG] Issues with XMLTreeBuilder in cElementTree and ElementTree

2008-03-25 Thread Stefan Behnel
Hi again, Michael Becker wrote: > These changes would allow the user to take advantage of the > ordered_attributes attribute in the expat parser to use either ordered > or unorder attributes as desired. For backwards compatibility it might > be desirable to change XMLTreeBuilder to default to orde

[XML-SIG] Issues with XMLTreeBuilder in cElementTree and ElementTree (Cross-post from comp.lang.python)

2008-03-20 Thread Michael Becker
I had some xmls being output by an application whose formatting did not allow for easy editing by humans so I was trying to write a short python app to pretty print xml files. Most of the data in these xml files is in the attributes so I wanted each attribute on its own line. I wrote a short app us