Jervous Posted August 3, 2006 Share Posted August 3, 2006 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 Link to comment https://forums.phpfreaks.com/topic/16487-xml-in-php4/ Share on other sites More sharing options...
hitman6003 Posted August 4, 2006 Share Posted August 4, 2006 use an xml class like this one:http://minixml.psychogenic.com/There are many others available. Link to comment https://forums.phpfreaks.com/topic/16487-xml-in-php4/#findComment-68931 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.