I am creating my first Roku channel and I am getting a "can't parse feed" error when trying to play my channel. I have checked the xml and there doesn't seem to be an error in those files. What could be my problem?
Here is the error code:
BrightScript Debugger> ------ Running ------
created feed connection for http://www.godaddy.com/Roku/xml/categories.xml
url: http://www.godaddy.com/Roku/xml/categories.xml
Took: 472ms
Can't parse feed
Current Function:
034: Function get_category_names(categories As Object) As Dynamic
035:
036: categoryNames = CreateObject("roArray", 100, true)
037:
038: for each category in categories.kids
039: 'print category.Title
040: categoryNames.Push(category.Title)
041: next
042:
043: return categoryNames
044:
045: End Function
216: BrightScript Debugger> ------ Running ------
217: created feed connection for http://www.godaddy.com/Roku/xml/categories.xml
218: Can't parse feed
219: Current Function:
220: 035:
221: 037:
222: 039: 'print category.Title
223: 042:
224: 044:
225: Syntax Error. (runtime error &h02) in .../pkg:/source/categoryFeed.brs(38)
226: Backtrace:
227: Function get_category_names(categories As <uninitialized>) As
228: file/line: /tmp/plugin/KCAAAATPD.../pkg:/source/categoryFeed.brs(38)
229: Function initcategorylist() As
230: file/line: /tmp/plugin/KCAAAATPDz98/pkg:/source/appHomeScreen.brs(112)
231: Function showhomescreen(screen As ) As Integer
232: file/line: /tmp/plugin/KCAAAATPDz98/pkg:/source/appHomeScreen.brs(39)
233: Function main() As
234: file/line: /tmp/plugin/KCAAAATPDz98/pkg:/source/appMain.brs(20)
235: Local Variables:
236: categories &h0010 bsc:roInvalid, refcnt=1
237: global &h0020 rotINTERFACE:ifGlobal
238: m &h0010 bsc:roAssociativeArray, refcnt=3
239: categorynames &h0010 bsc:roArray, refcnt=1
240: category &h0000 <uninitialized> val:Uninitialized
241: BrightScript Debugger>
Syntax Error. (runtime error &h02) in .../pkg:/source/categoryFeed.brs(38)
038: for each category in categories.kids
Backtrace:
Function get_category_names(categories As <uninitialized>) As
file/line: /tmp/plugin/KCAAAATPD.../pkg:/source/categoryFeed.brs(38)
Function initcategorylist() As
file/line: /tmp/plugin/KCAAAATPDz98/pkg:/source/appHomeScreen.brs(112)
Function showhomescreen(screen As ) As Integer
file/line: /tmp/plugin/KCAAAATPDz98/pkg:/source/appHomeScreen.brs(39)
Function main() As
file/line: /tmp/plugin/KCAAAATPDz98/pkg:/source/appMain.brs(20)
Local Variables:
categories &h0010 bsc:roInvalid, refcnt=1
global &h0020 rotINTERFACE:ifGlobal
m &h0010 bsc:roAssociativeArray, refcnt=3
categorynames &h0010 bsc:roArray, refcnt=1
category &h0000 <uninitialized> val:Uninitialized
BrightScript Debugger> BrightScript Debugger> BrightScript Debugger>