BrightScript Debugger> ------ Running ------
created feed connection for https://dl.dropboxusercontent.com/s/aybs8xiap91uowy/categories.xml
url: https://dl.dropboxusercontent.com/s/aybs8xiap91uowy/categories.xml
Took: 125ms
Can't parse feed
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<feed>
<!-- resultLength indicates the total number of results for this feed -->
<resultLength>2</resultLength>
<!-- endIndix indicates the number of results for this *paged* section of the feed -->
<endIndex>2</endIndex>
<item sdImg="">
<title>The Shopping Channel</title>
<contentId>10001</contentId>
<contentType>Shopping</contentType>
<contentQuality>SD</contentQuality>
<streamFormat>hls</streamFormat>
<media>
<streamQuality>SD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>tscstreaming-lh.akamaihd.net/i/TSCLiveStreaming_1@91031/index_3_av-p.m3u8</streamUrl>
</media>
<synopsis>The Shopping Channel</synopsis>
<genres>Clip</genres>
<runtime>1200</runtime>
</item>
</feed>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<categories>
<!-- banner_ad: optional element which displays an at the top level category screen -->
<banner_ad sd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/missing.png" hd_img="http://rokudev.roku.com/rokudev/examples/videoplayer/images/missing.png"/>
<category title="TSC" description="The Shopping Channel" sd_img="https://dl.dropboxusercontent.com/s/0ii7w0a2ujfc3l0/TSC%20214x144%20SD.jpg" hd_img="https://dl.dropboxusercontent.com/s/bubxi7hib8msfq6/TSC%20290x218%20HD.jpg">
<categoryLeaf title="TSC" description="The Shopping Channel" feed="https://dl.dropboxusercontent.com/s/4wrorazfb1cnaop/themind.xml"/>
</category>
</categories>
<?xml version="1.0" encoding="UTF-8" standalone="true"?>...
BrightScript Debugger> ------ Running ------
created feed connection for https://www.dropbox.com/s/kxzb5ct2gkns43g/categories.xml?dl=0
url: https://www.dropbox.com/s/kxzb5ct2gkns43g/categories.xml?dl=0
Took: 243ms
Can't parse feed
BrightScript Micro Debugger.
Enter any BrightScript statement, debug commands, or HELP.
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:
Syntax Error. (runtime error &h02) in pkg:/source/categoryFeed.brs(38)
038: for each category in categories.kids
Backtrace:
#3 Function get_category_names(categories As Object) As Dynamic
file/line: pkg:/source/categoryFeed.brs(38)
#2 Function initcategorylist() As Void
file/line: pkg:/source/appHomeScreen.brs(112)
#1 Function showhomescreen(screen As Dynamic) As Integer
file/line: pkg:/source/appHomeScreen.brs(39)
#0 Function main() As Void
file/line: pkg:/source/appMain.brs(20)
Local Variables:
categories bsc:roInvalid refcnt=1
global rotINTERFACE:ifGlobal
m roAssociativeArray refcnt=3 count:4
categorynames roArray refcnt=1 count:0
category <uninitialized>
BrightScript Debugger>