I have the following XML object:
<ns2:errorCode>
3001
</ns2:errorCode>
How do I access the value if I only have a string saying errorCode.
I would like to do something like:
xml['*::'+str]
where xml is the XML object with the above node and str is my string variable containing "errorCode".