Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Level 7

XML Help

Hi all,

I have a site that I update regularly with MP3s and basically what I want to do is
have my XML parse the data so that in my MP3 selection menu I have all the old
MP3s but also have the selection menu update automatically with the new MP3s that I add to my site.
Also, I have never worked with XML and I find it very weird to work with. (I'm not a network programmer Smiley Tongue )

Thank you very much to whoever can help me out.

Edit- Yes I have looked at the examples in the SDK and also the Docs, but it's still difficult for me.
Darkness cannot drive out darkness; only light can do that. Hate cannot drive out hate; only love can do that. Hate multiplies
hate, violence multiplies violence, and toughness multiplies toughness in a descending spiral of destruction. - MLK Jr.
0 Kudos
5 Replies
Highlighted
Level 8

Re: XML Help

This would be done on the server, so you might use something like PHP or perl to build a list of all mp3 and associateed info, in XML.

XML typically might look like this:

<songs>
<song>
<title>Dance of the River Monkeys</title>
<artist>Apezilla</artist>
<mediafile>http://www.myserver.com/apezilla/dance%20of%20the%20River%20Monkeys.mp3</mediafile>
</song>
<song>
<title>My new Red Shoes</title>
<artist>Shoefetish</artist>
<mediafile>http://www.myserver.com/shoefetish/My%20New%20Red%20Shoes.mp3</mediafile>
</song>
</songs>
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
0 Kudos
Highlighted
Level 7

Re: XML Help

Thanks for the reply,
I understand how to have static data now with the info you provided, but I'm still
confused on how to make my data dynamic (updating when I update the server)
without rolling out a new channel update every week I update the server.
Darkness cannot drive out darkness; only light can do that. Hate cannot drive out hate; only love can do that. Hate multiplies
hate, violence multiplies violence, and toughness multiplies toughness in a descending spiral of destruction. - MLK Jr.
0 Kudos
Highlighted
Level 9

Re: XML Help

"Kapture" wrote:
Thanks for the reply,
I understand how to have static data now with the info you provided, but I'm still
confused on how to make my data dynamic (updating when I update the server)
without rolling out a new channel update every week I update the server.

You would point your code to an XML file that is either dynamically or statically generated on your server. If you code is looking for a specific URL, you just need to update the content at that URL, and the channel will read the new data. No need to build/release a new channel.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
Highlighted
Level 7

Re: XML Help

Wow, I never thought about that. Smiley Tongue
Thank you for the info guys and hopefully
I can get this to work.

Cheers,
Kapture
Darkness cannot drive out darkness; only light can do that. Hate cannot drive out hate; only love can do that. Hate multiplies
hate, violence multiplies violence, and toughness multiplies toughness in a descending spiral of destruction. - MLK Jr.
0 Kudos
Highlighted
Level 8

Re: XML Help

This might be helpful:

http://www.php-help.ro/php-tutorials/output-folder-content-in-xml-file/
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
0 Kudos