Forum Discussion

Kapture's avatar
Kapture
Visitor
15 years ago

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.

5 Replies

  • jbrave's avatar
    jbrave
    Channel Surfer
    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>
  • 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.
  • "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.
  • Wow, I never thought about that. πŸ˜›
    Thank you for the info guys and hopefully
    I can get this to work.

    Cheers,
    Kapture