Im using xml.etree.ElementTree
to parse my XML data. I'm trying to get the text value of <Name>
This is my code.
for Content in Zone[0]:
print(Content.find('Name').text)
It is returning as NoneObject
However, I am able to access the Element using
for Content in Zone[0]:
print(Content[12].text)
I think I might have found the problem as when I print the tags out, it doesn't display Name
and instead it displays {http://schemas.datacontract.org/2004/07/}Name
. What is the extra data infront of the tag name?