Jump to content

Archived

This topic is now archived and is closed to further replies.

Jervous

XML in PHP4

Recommended Posts

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.

[QUOTE]
<item>
[b]<title>Gemineye - Break Neck Radio (The Afro-Takeover)</title>[/b]

<link>
http://podcast.digital-djs.com/imix/default.asp?id=11070
</link>

[b]<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>[/b]
<pubDate>Mon, 31 Jul 2006 10:27:33 EDT</pubDate>
<source url="http://feeds.feedburner.com/DDJiMix">Digital-DJs.com (Podcasts)</source>
<bd:channelLink>http://www.digital-djs.com</bd:channelLink>
<enclosure [b]url="http://broadcast.underground-fusion.com:8080/iMixes/Gemineye/Break%20Neck%20Radio%20(The%20Afro-Takeover).mp3"[/b] type="audio/mpeg"/>
<media:content url="http://broadcast.underground-fusion.com:8080/iMixes/Gemineye/Break%20Neck%20Radio%20(The%20Afro-Takeover).mp3" type="audio/mpeg"/>
</item>

<item>
[/quote]


Thanks,
Michael Boutros

Share this post


Link to post
Share on other sites
use an xml class like this one:

http://minixml.psychogenic.com/

There are many others available.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.