I\'m trying to generate customized xml files from a template xml file in python.
Conceptually, I want to read in the template xml, remove some elements, change some
most direct way to me :
root = ET.parse(xh) data = root.getroot() xdic = {} if data > None: for part in data.getchildren(): xdic[part.tag] = part.text