toxml Works on Any Node : XML Children Node « XML « Python
- Python
- XML
- XML Children Node
toxml Works on Any Node

from xml.dom import minidom
xmldoc = minidom.parse('binary.xml')
grammarNode = xmldoc.firstChild
print grammarNode.toxml()
Related examples in the same category