Forum Discussion

leandreb's avatar
leandreb
Visitor
15 years ago

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

1 Reply

  • jbrave's avatar
    jbrave
    Channel Surfer
    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