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