leandreb
15 years agoVisitor
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
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