I would like to change the name of an attribute on an xml element in multiple files. These files are an output from an image annotation tool. I have 1000 of such files, thus the position of those attribute name is not absolute.
My file is available at [XML FILE][1].
Here I would like to change
<attribute dynamic="false" name="Multiset Column Chart with Error Bars " type="http://lamp.cfar.umd.edu/viperdata#bbox"/>
TO
<attribute dynamic="false" name="Column Chart " type="http://lamp.cfar.umd.edu/viperdata#bbox"/>
and
<attribute name="Multiset Column Chart with Error Bars "/>
TO
<attribute name="Column Chart "/>
So far I can access the element in the first code snipped as
root=xmldoc.getroot()
print(root[0][0][11].attrib)
but it is not certain that this name "Multiset Column Chart with Error Bars " will always be at position [0][0][11].
So, I am not sure how can I access those specific names and can change the value for the name as I showed above.
Any assistance will be appreciated.
END NOTE
I had to remove the link to the source xml file because this file is part of my research project.
nameand then update it.