Parse XML from web

Hello,

I was trying to parse a web hosted xml to extract the video link that should be played into a Roku application.
I seem to be stucked at extracting the hls text from here https://sdkdocs.roku.com/display/sdkdoc/ifXMLElement#ifXMLElement-Parse(xmlasString)asBoolean but still can’t extract it.

I know that the xml is downloaded successfully and that the parent is indeed right.

if contentxml.getName() = "elmtv" 

returns true.

But how do I continue to extract the text for “hls” from a child below?

Can somebody please help me or at least put me on the right track?
Thanks!

try:

print contentxml.hls.live.gettext()

Yep. Found it here https://sdkdocs.roku.com/display/sdkdoc/Component+Architecture#ComponentArchitecture-BrightScriptXMLSupport

Indeed it works! So simple!

Thank you @renojim !

“mugurelu” wrote:
Indeed it works! So simple!
Yeah, the affordance of XML navigation is one of the great things of Roku/Brightscript