Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | 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 1
RokuMarkn
Visitor

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
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.