Tech Team

July 18, 2007

removed xml node and its contents using xml_util

Filed under: Python, xml — techteam @ 6:13 am
  • Match node to delete

node = xml.getNode(“xpathGoesHere”)

  • delete the node

node.delete()

  • Save changes using

xml.saveFile()

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.