python minidom mixing element attributes

Orelayowela

New Member
Element is created:\[code\] ele = doc.createElement("ele") ele.attributes['var']= 'yes' ele.attributes['ret']= 'no' main.appendChild(ele)\[/code\]But result has mixed attributes (alphabetic probably):\[code\]<function ret="no" var="yes"/>\[/code\]Is there any way how to preserve the creating order of attributes in minidom?
 
Back
Top