I am working with some XML data that, in some locations in each file, redefines the namespace. I'm trying to pull all tags of a specific type from the document regardless of the namespace that's active at the point where the tag resides in the XML.
I'm using findall('.//{namespace}Tag')
to find the elements I'm looking for. But never knowing what the {namespace}
will be at any given point in the file, makes it hit or miss whether I'll get all the requested Tags returned or not.
Is there a way to return all the Tag elements regardless of the {namespace}
they fall under? Something along the lines of findall('.//{wildcard}Tag')
?