Recommendations for parsing XML with PHP

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I am a novice with PHP, in fact so novice, that I come from the
Windows world. I have successfully set up my Slackware distro on my
laptop, downloaded, compiled and installed Apache 2.x and PHP 5.x. We
have a configuration file an application of ours uses, that I wish to
convert to XML and will be writing a WEB UI to change the XML. What
PHP classes, source, scripts (what ever one calls it and please let me
know) are there to read in a XML file, manipulate it and write back
up. I am looking for some sample and hopefully instruction on how to
install the extension (or what ever it might end up being)'

Ralph Krausse

Re: Recommendations for parsing XML with PHP

From Sams Teach Yourself PHP in 24 hours page 410 -
"In this section we will examin the mosta stable of PHP's XML tools. The
parser functions enable us to access XML documents quickly and with minimal
The functions Jim Clarke's Expat Library (XML Parser Toolkit), which is
available from . If you are running
Apache 1.3.7 or later, you will already have Expat bundled with your server,
and you may find that the XML functions are available to you without the
explicit compile options. Otherwise you should install Expat and add
to your configure options.....The parser model is 'event-based'. As
components of the XML document are reached, user-created callback functions
will be called."

Hope this helps,

Quoted text here. Click to load it

Site Timeline