Using Python 3.x I need to read / modify the text highlighted in the picture below:
The code I have developped crawls thru the XML file and it displays eg: the 7F7F7F and the hu-HU correctly, but not the highlighted text. (which makes sense to me, because I am certainly missing something)
How can I read / modify that part of the XML? Is there any trivial way to do it, or do I need to use my recursive algorithm? (I am completely new to python as well as to XML)
import xml.etree.ElementTree as ET
tree = ET.parse('c:\\temp\\document.xml')
root = tree.getroot()
def myRecursion(param1):
for child in param1:
myString = str(child.attrib)
print(child.items())
myRecursion(child)
myRecursion(root)`