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".
Thank you for the help. If anybody is interested this is how I solved it.
What was making the task difficult was the namespace. This works!