I\'ve read the remove
example here and the example here is not applicable to me.
My xml file reads:
some text
In [1]: import xml.etree.ElementTree as ET
In [2]: xmlstr=\
...: """
...:
...: some text
...: other text
...: more text
...:
...: """
In [3]: tree=ET.fromstring(xmlstr)
In [4]: tree.remove(tree.findall('.//B')[1])