Hi Joel,
I would like to see the data in homeoptionslistcontent.xml inside a LabelList. I think I'm able to parse the data but the data is not Populating in to the LabelList after parsing.
Following is the code to fetch data
sub getContent()
print "In content"
content = createObject("RoSGNode","ContentNode")
contentxml = createObject("roXMLElement")
readInternet = createObject("roUrlTransfer")
readInternet.setUrl(m.top.uri)
contentxml.parse(readInternet.GetToString())
'contentxml.parse(ReadAsciiFile(m.top.uri))
itemCount = 0
if contentxml.getName()="listcontent"
for each item in contentxml.GetNamedElements("item")
attributes = item.getAttributes()
item = {
text: attributes.text
}
listitem = content.createChild("ContentNode")
listitem.title = item.text
itemCount = itemCount+1
end for
end if
m.top.content = content
print itemCount
end sub
Following is the code to populate the list.
sub showhomeoptionslist()
print "Showing List"
m.moviemenu = m.top.findNode("moviemenu")
m.moviemenu.content = m.top.content
m.moviemenu.visible=true
m.moviemenu.setFocus(true)
end sub
The logs are printed correctly. But the Label list is blank even after setting content