Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
leandreb
Visitor

display html information

Listed below works fine, but I cannot display the html content.... please help

m.UrlBase = "http://xxx.xxx.xxx.xxx"
m.UrlSearch = m.UrlBase + "somelocation"
http = NewHttp(m.UrlSearch)
rsp = http.Http.GetToString()
xml = CreateObject("roXMLElement")

if not xml.Parse(rsp) then
print "Can't parse response"
ShowConnectionFailed()
return ""
end if

if xml.GetName() <> "feed"
Dbg("Bad register response: ", xml.GetName())
ShowConnectionFailed()
return ""
end if

if islist(xml.GetBody()) = false then
Dbg("No registration information available")
ShowConnectionFailed()
return ""
end if
************ this print null **********
title = ""
title = xml.feed.item.title.GetText()
print title
0 Kudos
1 REPLY 1
jbrave
Channel Surfer

Re: display html information

The Roku doesn't really do HTML and I don't see anything to do with HTML in your code, only XML... If you want to deal with HTML you can parse to some degree using regex, it is far from perfect however.

-Joel
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.