hkashi73
9 years agoVisitor
Issues loading from XML
Hello, New developer here not sure if this has been addressed before but I couldn't find anything on it.
I downloaded the "Simple_Grid_and_Video" sample code that had a default sample feed on it. Obviously I need to change that feed to retrieve my content but everytime I change the feed from the default to anything else, all I get is a Loading... with the spinner. Even when I don't even change anything about the code and upload the default file right to my server, it still doesn't work. I haven't made any changes to the sample code just simply changing the url feed. Would appreciate any help. Thanks
For references I will place the debug console message below.
I downloaded the "Simple_Grid_and_Video" sample code that had a default sample feed on it. Obviously I need to change that feed to retrieve my content but everytime I change the feed from the default to anything else, all I get is a Loading... with the spinner. Even when I don't even change anything about the code and upload the default file right to my server, it still doesn't work. I haven't made any changes to the sample code just simply changing the url feed. Would appreciate any help. Thanks
For references I will place the debug console message below.
Current Function:
058: Function GetApiArray()
059: url = CreateObject("roUrlTransfer")
060: url.SetUrl("http://iranmovie.byethost4.com/media.rss")
061: rsp = url.GetToString()
062:
063: responseXML = ParseXML(rsp)
064:* responseXML = responseXML.GetChildElements()
065: responseArray = responseXML.GetChildElements()
066:
067: result = []
068:
'Dot' Operator attempted with invalid BrightScript Component or interface reference. (runtime error &hec) in pkg:/source/main.brs(64)
064: responseXML = responseXML.GetChildElements()
Backtrace:
#1 Function getapiarray() As Dynamic
file/line: pkg:/source/main.brs(64)
#0 Function runuserinterface() As Void
file/line: pkg:/source/main.brs(10)
Local Variables:
global rotINTERFACE:ifGlobal
m roAssociativeArray refcnt=3 count:0
url bsc:roUrlTransfer refcnt=1
rsp roString (2.1 was String) refcnt=1 val:"<html><body><script type="text/javascript" src="/aes.js" ></script><script>function toNumbers("...
responsexml Invalid
responsearray <uninitialized>
result <uninitialized>
xmlitem <uninitialized>
itemaa <uninitialized>
item <uninitialized>
mediacontent <uninitialized>
mediacontentitem <uninitialized>