ok guys i am gonna try to understand this.
i want to stick with the way i know in grabbing a XML file which is
m.UrlGetMp3Info = m.UrlBase + "/Mp3Playlist.php"
http = NewHttp(m.UrlGetMp3Info)
rsp = http.Http.GetToString()
xml = CreateObject("roXMLElement")
print "GOT: " + rsp
print "Reason: " + http.Http.GetFailureReason()
if not xml.Parse(rsp) then
print "Can't parse response"
ShowConnectionFailed()
return ""
end if
if xml.GetName() <> "result"
Dbg("Bad register response: ", xml.GetName())
ShowConnectionFailed()
return ""
end if
if islist(xml.GetBody()) = false then
Dbg("No Song information available")
ShowConnectionFailed()
return ""
end if
'handle validation of response fields
for each e in xml.GetBody()
if e.GetName() = "title" then
title = e.GetBody()
end if
if e.GetName() = "author" then
author = e.GetBody()
end if
if e.GetName() = "desc" then
desc = e.GetBody()
end if
if e.GetName() = "url" then
url = e.GetBody()
end if
if e.GetName() = "image" then
image = e.GetBody()
end if
next
song = CreateSong(title, desc, author, "mp3", url, image)
aa.posteritems.push(song)
I am not at home to test but will this give me the same results or will this only bring back and display one "song"?
if it doesn't bring back more than one "song" what do i need to do to make this to display the same amount as from the xml file.