Wednesday, April 3, 2013

PHP-Parsing an XML Document



PHP 5's new SimpleXML module makes parsing an XML document, well, simple. It turns an XML documentinto an object that provides structured access to the XML.

To create a SimpleXML object from an XML document stored in a string, pass the string to simplexml_load_string( ). It returns a SimpleXML object. In Example 11-3, $channel holds XML that represents the part of an RSS 0.91 feed....M O R E

source: articlealley

No comments:

Post a Comment