New submission from Petr Pulc:

just an idea for improvement of minidom.

Sometimes it is not convenient that the element attributes are sorted 

Usually, users do hack the minidom file themselves to force some behaviour, yet 
the order can be quite nicely defined by the DTD, for example.

More on the "issue" side is another idea for improvement. Not all special 
characters do need to be changed to entities. For example, only < needs to be 
changed to entity in text data. I guess, that the _write_data function could be 
then diminished as well...

What do you mean of these two ideas? Comments will be appreciated.

components: XML
messages: 278804
nosy: Petr Pulc
priority: normal
severity: normal
status: open
title: Minidom, order of attributes, datachars
type: enhancement
versions: Python 3.7

Python tracker <>
Python-bugs-list mailing list

Reply via email to