Python: Modifying an XML File
I'm stuck, I've written a code that looks for specific index in xml file. But when find that Index won't create me a new xml file with just that Index in and constant parameters. it returns an error: ...rba_u_xml.py", line 29, in <module> ObjectDictionary.remove(Variable) File "C:\Python27\lib\xml\etree\ElementTree.py", line 337, in remove self._children.remove(element) ValueError: list.remove(x): x not in list this is my code: import xml.etree.ElementTree as ET tree = ET.parse('master.xml') root = tree.getroot() s = input('Insert a number of index and add quotes(") befor and after: ') i = int