I need to parse xml into another structure.
example:
a = """
<actors xmlns:fictional="http://characters.example.com">
<actor>
<name>Eric Idle</name>
<fictional:character>Sir Robin</fictional:character>
<fictional:character>Gunther</fictional:character>
<fictional:character>Commander Clement</fictional:character>
</actor>
</actors>
"""
I am using ElementTree to parse the tree
root = ElementTree.fromstring(a)
When I apply
root[0][1].tag
I get the result
{``http://characters.example.com``}character
but I need to get the result as it was in the original file
fictional:character
how do I achieve this result?