WordPress.org

Ready to get started?Download WordPress

Forums

Help with XML-parsing (5 posts)

  1. Brutal
    Member
    Posted 8 years ago #

    Hey!
    Could someone please point me in a direction on how to parse an XML-file (e.g. http://ws.audioscrobbler.com/1.0/user/brutal/toptracks.xml) so that I can output it's contents on my site in a pretty way?

  2. skulled
    Member
    Posted 8 years ago #

    How do you want to parse the xml file?

    Parsing it with PHP is easy, if you can get a XML parser class. Try looking for free parser on the net, if you have more questions, post back.

  3. Brutal
    Member
    Posted 8 years ago #

    I want to parse out the artist and track-tags so I can make a list:
    e.g:

    This Weeks Top Tracks:
    1. Danger Doom - Sofa King
    2. Danger Doom - The Mask
    3. Whatever - Whatever

    I tried checking out Domit (http://www.engageinteractive.com/domit), but it seemed like overkill for this task.

  4. skulled
    Member
    Posted 8 years ago #

    Do you want the "artist and track" information to be displayed in your blog? If yes, where exactly?

  5. Brutal
    Member
    Posted 8 years ago #

    yes this is for my blog, and I'm not sure exactly where it will be displayed - but probably in the sidebar.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags