XML Parser class.
This is an XML parser based on PHP's "xml" extension, based on the bundled expat library.
Notes:
Located in /PEAR/XML/Parser.php (line 96)
PEAR | --XML_Parser
Class | Description |
---|---|
![]() |
Simple XML parser class. |
Whether to do case folding
If set to true, all tag and attribute names will be converted to UPPER CASE.
File handle if parsing from a file
Mapping from expat handler function to class method.
Mode of operation, one of "event" or "func"
XML parser handle
source encoding
target encoding
handler object
PHP5 constructor
Creates an XML parser.
This is needed for PHP4 compatibility, it will call the constructor, when a new instance is created.
XML_Parser::free()
Free the internal resources associated with the parser
XML_Parser::parseString()
Parses a string.
XML_Parser::raiseError()
Throws a XML_Parser_Error
Reset the parser.
This allows you to use one parser instance to parse multiple XML documents.
Sets the object, that will handle the XML events
This allows you to create a handler object independent of the parser object that you are using and easily switch the underlying parser.
If no object will be set, XML_Parser assumes that you extend this class and handle the events in $this.
Sets the file handle to use with parse().
You should use setInputFile() or setInputString() if you pass a string
Sets the input xml file to be parsed
XML_Parser::setInputString()
Sets the xml input from a string
Sets the mode of the parser.
Possible modes are:
This method is only needed, when switching to a new mode at a later point.
Inherited From PEAR
PEAR::PEAR()
PEAR::delExpect()
PEAR::expectError()
PEAR::getStaticProperty()
PEAR::isError()
PEAR::loadExtension()
PEAR::popErrorHandling()
PEAR::popExpect()
PEAR::pushErrorHandling()
PEAR::raiseError()
PEAR::registerShutdownFunc()
PEAR::setErrorHandling()
PEAR::staticPopErrorHandling()
PEAR::staticPushErrorHandling()
PEAR::throwError()
PEAR::_PEAR()
Documentation generated on Mon, 04 Dec 2006 11:09:46 -0500 by phpDocumentor 1.3.0RC3