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: 
ioan
Roku Guru

XML Question

Hi,
Short question, is the roku able to read an xml like this:

<episode title="Ancient Aliens" subtitle="Chariots, Gods & Beyond" basename="Ancient+Aliens%5CAncient+Aliens_20110126_21002300.mpg" airdate="2011-01-26 21:00" hd_img="http://192.168.1.55/dvr/Ancient%20Aliens/Ancient%20Aliens_20110126_21002300_hd.png" sd_img="http://192.168.1.55/dvr/Ancient%20Aliens/Ancient%20Aliens_20110126_21002300_sd.png"></episode>

or should I make it with all the fields encoded like this:

<episode title="Ancient+Aliens" subtitle="Chariots%2C+Gods+%26+Beyond" basename="Ancient+Aliens%5CAncient+Aliens_20110126_21002300.mpg" airdate="2011-01-26+21%3A00" hd_img="http://192.168.1.55/dvr/Ancient%20Aliens/Ancient%20Aliens_20110126_21002300_hd.png" sd_img="http://192.168.1.55/dvr/Ancient%20Aliens/Ancient%20Aliens_20110126_21002300_sd.png"></episode>

Thanks.
https://github.com/e1ioan/
http://rokucam.com
0 Kudos
1 REPLY 1
RokuKevin
Visitor

Re: XML Question

The Roku will only parse properly formatted XML. "," would be OK but "&" is not acceptable. The characters "<", ">", "&", single quote, and double quote can be encoded with:

&lt; represents "<", &gt; represents ">", &amp; represents "&", &apos; represents ', and &quot; represents "

--Kevin
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.