Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Python: Delete a node in a DOM tree

Python: Delete a node in a DOM tree
{filelink=16809}

from xml.dom import minidom
xmldoc = minidom.parse('c:/test.xml')
doc_root = xmldoc.documentElement
etat=doc_root.removeChild(doc_root.childNodes[0])
print etat

Users who found this page were searching for:

  • Getting A DOM Tree python example
  • python python dom delete subentry
  • python DOM tree
  • python dom remove node
  • python delete tree element

No comments yet.

Leave a Comment