I have this xml page [URL=”http://mp3.sermons.s3.amazonaws.com/”]http://mp3.sermons.s3.amazonaws.com/[/URL] and I would like php to parse the <Key> tags into a list of html links.
I will be so greatful if someone could help me. Thanks in advance.
@robertketterauthorFeb 01.2008 — #NogDog...I just looked into simplexml but will not be able to use it right now as my host is still using php 4. Do you have another idea?
@NogDogFeb 01.2008 — #Well, you could try to get them to upgrade, since as of a month ago PHP 4 is officially "dead" and no longer supported.
Since that probably won't work, your basic options are the incredibly clumsy [url=http://www.php.net/manual/en/ref.xml.php]XML Parser functions[/url], doing some creative stuff with [url=http://www.php.net/preg_match_all]preg_match_all[/url]() and related functions, or looking at PEAR.php.net, www.sourceforge.net or similar sites for a ready-made class or function you could use.