python minidom create xml element with end tag

timo19t

New Member
I'm creating XML element via minidom:\[code\] ele = doc.createElement("ele") main.appendChild(ele) ele.attributes['name']= "bla"\[/code\]But the elemnt looks:\[code\]<ele name="bla"/>\[/code\]And what I want is:\[code\]<ele name="bla"></ele>\[/code\]
 
Back
Top