Preserve empty tags using xml.dom.minidom.Node.toxml()

ThereisnoGod

New Member
I'm using xml.dom to parse xml documents and I want to preserve empty tags (like \[code\]<node></node>\[/code\]) using node.toxml(), which instead returns \[code\]<node />\[/code\]... how can I avoid the self-closing tag and preserve the original node as it was written in the xml?
 
Back
Top