How do I convert XML into XSPF?
October 2, 2006 11:04 PM   Subscribe

How do I convert XML files into XSPF?

I'm looking particularly at the XML files offered at by the Audioscrobbler Webservices. They provide XSPF lists for most of the track charts, but not for the Recent Weekly Track Charts for groups. Is there a simple way to generate an XSPF file from the XML?
posted by monsterhero to Computers & Internet (4 answers total)
posted by beerbajay at 3:07 AM on October 3, 2006

Either use your favourite scripting language (I'm a big fan of PHP5's XML functions) - or use an XSL Transform. I'm working on a lot of web services - I'll send you some example code to do transforms if you want.
posted by tommorris at 4:12 AM on October 3, 2006

Perhaps you'd get somewhere with Hublog's Playr or the like.
posted by Mr. Gunn at 5:59 AM on October 3, 2006

XSL is designed to do this. It's not that hard - a bit of reading to get started, but once you've got the hang of it you can do almost anything.
posted by unixrat at 6:31 AM on October 3, 2006

« Older Grey flakes in my humidifier?   |   How to use a bike to power appliances Newer »
This thread is closed to new comments.