CHANGES: NEWS DOWNLOAD: Stable 1.1 (September 19, 2007): XMLParser-1.1.tar.gz ANONYMOUS CVS: (leave password empty) cvs -d :pserver:anonymous@cvs.phpinsider.com:/export/CVS login cvs -d :pserver:anonymous@cvs.phpinsider.com:/export/CVS checkout XMLParser SEE ALSO: RSSParser NAME: XMLParser - A library used for reading XML files (URLs) and transposing them into a PHP array structure. AUTHOR: Monte Ohrt <monte [AT] ohrt [DOT] com> LATEST VERSION: 1.0 - September 19th, 2005 REQUIREMENTS: The XMLParser requires the expat XML parsing library, which can be enabled in PHP with the configure flag "--enable-xml" during compilation. SYNOPSIS: require('XMLParser.class.php'); $xml =& new XMLParser; $output = $xml->parse('sample.xml'); print_r($output); sample.xml SOURCE: <user> <name>John Doe</name> <addr>123 N 45</addr> <phone>555.555.5555</phone> </user> OUTPUT: Array ( [0] => Array ( [name] => USER [content] => [child] => Array ( [0] => Array ( [name] => NAME [content] => John Doe ) [1] => Array ( [name] => ADDR [content] => 123 N 45 ) [2] => Array ( [name] => PHONE [content] => 555.555.5555 ) ) ) ) DESCRIPTION: XMLParser - A library used for reading XML files (URLs) and transposing them into a PHP array structure. BASE CLASS METHODS: ------------------- parse($xml) ----------- Parses the given XML file (or URL) into a PHP array structure and returns it. Example: $output = $xml->parse('http://www.foo.com/rss.xml'); print_r($output); Any questions, drop me a line. Monte Ohrt <monte [AT] ohrt [DOT] com> OTHER PROJECTS: View Monte's other projects