best xml parser for php?

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

Threaded View
Hi all

I need to use some Ajax for a site running PHP, I was wondering which
is the best xml parser to use?



Re: best xml parser for php?

Quoted text here. Click to load it
There are a couple XML parsers you can use with PHP. Which one you use
is decided by your needs. The easiest to use and my favorite is
SimpleXML ( ). You load an XML file and
query the structure of the file by XPath. You do, however, need PHP 5.
Another approach is the XML parser functions ( ).
You set functions that will be called when the parser hits nodes in
the document. Getting a little more advanced, the XMLReader functions
(they require PHP 5 too), allow you to move a "cursor" around the XML
document you're parsing ( ). Good Luck!
Quoted text here. Click to load it

Site Timeline