Jump to content


Photo

XML in PHP4


  • Please log in to reply
1 reply to this topic

#1 Jervous

Jervous
  • Members
  • Pip
  • Newbie
  • 9 posts

Posted 03 August 2006 - 07:33 PM

Hello,

I am trying to parse an XML file for 3 of it's fields, but I have no idea how to. I know in PHP5 we have SimpleXML, but what can I use in PHP4? Below is an example of one of the items in the XML file. The fields in bold are the ones I need.

<item>
<title>Gemineye - Break Neck Radio (The Afro-Takeover)</title>

<link>
http://podcast.digit...lt.asp?id=11070
</link>

<description>
01. (Intro) Spencer Doran - First of All 02. J. Dilla - Thunder 03. Blu - Soul Amazing (Soul Provider Remix) 04. Session - Freestyle 05. Jahi feat. Dwele - On My Own 06. Q-Tip feat. Andre 3000 - That's Sexy 07. (Break #1) Cyrus Tha Great - Island Music 08. Jay-Z - 99 Problems (DL's Firefly Remix) 09...
</description>

<pubDate>Mon, 31 Jul 2006 10:27:33 EDT</pubDate>
<source url="http://feeds.feedbur...Digital-DJs.com (Podcasts)</source>
<bd:channelLink>http://www.digital-d...bd:channelLink>
<enclosure url="http://broadcast.und...e Afro-Takeover).mp3" type="audio/mpeg"/>
<media:content url="http://broadcast.und...e Afro-Takeover).mp3" type="audio/mpeg"/>
</item>

<item>



Thanks,
Michael Boutros

#2 hitman6003

hitman6003
  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 04 August 2006 - 02:02 AM

use an xml class like this one:

http://minixml.psychogenic.com/

There are many others available.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users