xmlParser was created due to the lack of a good, namespace aware XML parser for PHP. It is written as a PHP class. It functions as it is, however, many more features are planned. This class is still in the development phase. As it functions now, it will accept XML data as a string and present it as a struct.


xmlParser requires the PHP XML Extension based on James Clark's Expat, an event based parser. It has been developed using PHP 4.2. It should work with any 4.x version, though this has not been tested.


This application is licensed under the GPL and is therefore free (as in "speech" and as in "beer").


xmlParser v0.3
xmlParser v0.3 syntax highlighted source


Jesus! Hold your horses. I'm getting to it. For now, an example of its usage will have to do.

Fatal error: Smarty plugin error: fetch cannot read file '/var/sites/revjim.net/www/code/xmlParser/testparser.php' in /home/inklog/revjim.net/include/smarty/Smarty.class.php on line 1983