PEAR_XMLParser::parse() – parse


require_once '/XMLParser.php';

true|PEAR_Error PEAR_XMLParser::parse ( string $data )


Return an array that matches the XML parsed. This code is lifted from Stephan Schmidt's XML_Unserializer class in the XML_Serializer package. As such, tags are represented by an associative array. Multiple tags are represented with a 0-based array of tag contents, and attributes are represented by an array index named attribs. If attributes are present, the array index _contents is used to hold the contents of the xml tag.


string $data

xml content


throws no exceptions thrown


This function can not be called statically.

PEAR_XMLParser::getData (Previous) PEAR_XMLParser::preProcessStupidSaxon (Next)
Last updated: Tue, 02 Jun 2009 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.