ifacethoughts

XML Parsing With PHP 5

Paul Stamatiou details XML parsing in PHP 5 using SimpleXML. SimpleXML lets you navigate the XML document as a data structure. PHP 5 also introduces a class called XMLReader that operates in stream mode and lets you do pull parsing. Pull parsing lets the client pull data from the XML document whenever required, which is perfect for parsing huge XML documents, without any disadvantages of the DOM or SAX models.

Discussion [Participate or Link]

  1. Douglas Karr said:

    Simple XML is simply amazing! I utilized it with my Technorati Rank plugin. Folks running older versions of PHP are upset that I didn’t support it, but the old way of using DOM and looping through nodes is server-intense and complex.

  2. Abhijit Nadgouda said:

    Very true Douglas! SimpleXML has really made working with XML simpler. I wonder if SimpleXML extension can be provided to PHP 4.* too. Just a thought, I believe a lot of people are going to be hesitant in moving to PHP 5.

Say your thought!

If you want to use HTML you can use these tags: <a>, <em>, <strong>, <abbr>, <code>, <blockquote>. Closing the tags will be appreciated as this site uses valid XHTML.

freshthoughts

contactme

Abhijit Nadgouda
iface Consulting
India
+91 9819820312
My bookmarks

badgesand...

This is the weblog of Abhijit Nadgouda where he writes down his thoughts on software development and related topics. You are invited to subscribe to the feed to stay updated or check out more subscription options. Or you can choose to browse by one of the topics.