Easy XML for PHP
I'm hacking together a little something in PHP and I found myself in the unfortunate position of having to use XML. If you find yourself in such a sad predicament, Keith Devens's PHP XML Library can make your life easier.
The Easy XML for PHP article by Aral Balkan, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial 2.0 UK: England License.
The Easy XML for PHP article by Aral Balkan, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial 2.0 UK: England License.

Zarate
Hi Aral,
Last time I tried to parse a XML file in PHP was after using XPath in Flash, so I decided to find something like that for PHP. I finally found this:
http://sourceforge.net/projects/phpxpath/
It’s not super-easy to use, but does the work.
Cheers!
December 19th, 2006 at 2:02 pmaral
Cool, thanks for the link. XPath falls into the “more complicated than necessary” category for me after getting used to the transparent simplicity of E4X. I was actually thinking of using Java for this just so I could use Rhino but decided against it for other reasons.
December 19th, 2006 at 2:45 pmAaron Heimlich
Question: what PHP version are you using?
If you’re on PHP 5 then you should be able to use SimpleXML[1] or XMLReader[2].
[1]http://www.php.net/manual/en/ref.simplexml.php
December 19th, 2006 at 11:29 pm[2]http://www.php.net/manual/en/ref.xmlreader.php (note: probably not available in 5.0, bundled and enabled by default in 5.1 )