Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't parse feed

Dear All,

I would highly appreciate your help in this matter as I've been scratching my head since last two days on this but could not fix it.

I used 'Video Player' sample 'source code' provided with Roku SDK.

The only changes that I did was, I copied the "Categories.XML" file, changed it to show only one video. See XML content below.

And in 'Source' folder, changed only one line in 'CategoryFeed.brs' to point "https://s3.amazonaws.com/aress-roku-config-bucket/d26bff8c-073a-4991-ba56-92d2cf5811ae/VideoPlayer/xml" for categories feed.

And when I deploy my project on Dev Env. It shows me following:
url: https://s3.amazonaws.com/aress-roku-con ... gories.xml
Took: 523ms
Can't parse feed


I cannot continue further. I tried changing references for XML file from Amazon S3 bucket to another web reference, also tried pointing to local IIS folder and finally tried dropping file in dropbox (http://www.dropbox.com) and referring it directly via code. But all in vain.

Can some please help and guide on how to proceed. This has now become a show stopper.

Await your response.



Categories.xml
------------------------------------------------------------------------------------------------------------
<?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="Marine Mammals" description="Streaming Video of Marine Mammals" sd_img="http://www.herofish.com/OTHER_PAGES/Testing/sd_Attitude.jpg" hd_img="http://www.herofish.com/OTHER_PAGES/Testing/hd_Attitude.jpg">

<categoryLeaf title="Harbor Seal" description="" feed="http://www.herofish.com/OTHER_PAGES/Testing/xml/themind.xml"/>

</category>

</categories>
------------------------------------------------------------------------------------------------------------
0 Kudos
1 Reply
RokuMarkn
Level 7

Re: Can't parse feed

That XML parses fine for me. Are you sure you're reading it correctly from the server? You should try printing out the XML text before you parse it. Also note that since you're using an https URL you need to call SetCertificatesFile() on your roURLTransfer object.

--Mark
0 Kudos