I’m working with the Livestream API, and I need to get some XML with the desired channel info, so i’m having problem when reading the XML values with the XML object, because the tags are have the ‘:’ symbol in the tag name, like this:
<ls:isLive>true</ls:isLive>
When I try to select like this, it obviously return me a parsing error:
xmlData.ls:isLive
And then I tried this way, but it returned me empty value:
xmlData["ls:isLive"]
How can I select this element’s value by the tag name?
Suppose your xml looks like this:
To access
isLivetag you need to declare Namespace: