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: 
Kapture
Visitor

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 😛 )

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 5
jbrave
Channel Surfer

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
Kapture
Visitor

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
TheEndless
Channel Surfer

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
Kapture
Visitor

Re: XML Help

Wow, I never thought about that. 😛
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
jbrave
Channel Surfer

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