Public Member Functions | |
| & | createParser () |
| destroy () | |
| destroyParser (&$parser) | |
| & | parse ($file) |
| & | parseStruct ($file, $tagsToMatch=array()) |
| setHandler (&$handler) | |
| XMLParser () | |
Definition at line 28 of file XMLParser.inc.php.
| & XMLParser.createParser | ( | ) |
Initialize a new XML parser.
Definition at line 150 of file XMLParser.inc.php.
Referenced by parse(), and parseStruct().
| XMLParser.destroy | ( | ) |
Perform required clean up for this object.
Definition at line 169 of file XMLParser.inc.php.
| XMLParser.destroyParser | ( | &$ | parser | ) |
Destroy XML parser.
| $parser | resource |
Definition at line 161 of file XMLParser.inc.php.
Referenced by parse(), and parseStruct().
| & XMLParser.parse | ( | $ | file | ) |
Parse an XML file using the specified handler. If no handler has been specified, XMLParserDOMHandler is used by default, returning a tree structure representing the document.
| $file | string full path to the XML file |
Definition at line 52 of file XMLParser.inc.php.
References createParser(), destroyParser(), setHandler(), and FileWrapper.wrapper().
| & XMLParser.parseStruct | ( | $ | file, | |
| $ | tagsToMatch = array() | |||
| ) |
Parse an XML file using xml_parse_into_struct and return data in an array. This is best suited for XML documents with fairly simple structure.
| $file | string full path to the XML file | |
| $tagsToMatch | array optional, if set tags not in the array will be skipped |
Definition at line 111 of file XMLParser.inc.php.
References createParser(), destroyParser(), and FileWrapper.wrapper().
| XMLParser.setHandler | ( | &$ | handler | ) |
Set the handler to use for parse(...).
| $handler | XMLParserHandler |
Definition at line 100 of file XMLParser.inc.php.
Referenced by parse().
| XMLParser.XMLParser | ( | ) |
Constructor. Initialize parser and set parser options.
Definition at line 40 of file XMLParser.inc.php.
1.5.6