ElementTree Issue - Search and remove elements
tharanga.abeyseela at gmail.com
Thu Oct 18 03:05:42 CEST 2012
Managed to find the element from my xml feed. but i'm having an issue
when trying to remove the parent node and write the xml file.
import elementtree.ElementTree as ET
tree = ET.parse('test.xml')
root = tree.getroot()
walkAll = tree.getiterator()
for elt in walkAll:
for x in
i was trying to remove the element (not the element tag).
why i cant remove the elt element from root if i found the NC matching pattern.
More information about the Python-list