XML_ParserXML 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 |
|---|---|
XML_Parser_Simple
|
Simple XML parser class. |
XML_Parser
__construct
([string $srcenc = null], [string $mode = 'event'], [mixed $tgtenc = null], string $tgenc)
XML_Parser
XML_Parser
([string $srcenc = null], [string $mode = 'event'], [mixed $tgtenc = null], string $tgenc)
boolean
$folding
= true (line 123)
Whether to do case folding
If set to true, all tag and attribute names will be converted to UPPER CASE.
resource
$fp
(line 113)
File handle if parsing from a file
array
$handler
= array(
Mapping from expat handler function to class method.
string
$mode
(line 130)
Mode of operation, one of "event" or "func"
resource
$parser
(line 106)
XML parser handle
string
$srcenc
(line 151)
source encoding
string
$tgtenc
(line 158)
target encoding
object
$_handlerObj
(line 165)
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