By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,278 Members | 1,359 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,278 IT Pros & Developers. It's quick & easy.

best xml parser for php?

P: n/a
Hi all

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

regards

Marc

Feb 24 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Feb 24, 3:48 am, "monomaniac21" <mcyi2...@googlemail.comwrote:
Hi all

I need to use some Ajax for a site running PHP, I was wondering which
is the best xml parser to use?
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 (http://www.php.net/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 (http://www.php.net/xml).
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 (http://www.php.net/xmlreader). Good Luck!
>
regards

Marc

Feb 24 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.