XML: remove child node of a node

Posted by nebenmir on Stack Overflow See other posts from Stack Overflow or by nebenmir
Published on 2010-04-19T09:59:46Z Indexed on 2010/04/19 10:03 UTC
Read the original article Hit count: 225

Filed under:

I want to find all nodes in a xml file that have a certain tag-name, lets say "foo". If those foo-tags have them thelves child nodes with node-name "bar", then I want to remove those nodes. The result should be written to a file.

// remove this one // don't remove this one

Thanx for any hints. As the tag indicates, I would like to do this with python.

© Stack Overflow or respective owner

Related posts about python