This class is a wrapper for the PHP's internal expat parser.
It takes an XML file represented by a abstract path name, and starts parsing the file and calling the different "trap" methods inherited from the AbstractParser class.
Those methods then invoke the represenatative methods in the registered handler classes.
author |
Andreas Aderhold andi@binarycloud.com |
---|---|
copyright |
2001,2002 THYRELL. All rights reserved |
version |
$Id: 1f700744690a73ed42feae0fb6974553a2d42bc4 $ |
access |
public |
package |
phing.parser |
__construct()
characters(resource $parser, string $data)
This method is called by PHP's internal parser functions and registered in the actual parser implementation.
It gives control to the current active handler object by calling the
characters()
method. That processes the given CDATA.
throws |
|
---|---|
resource
php's internal parser handle.
string
the CDATA
endElement( $parser, $name)
This method is called by PHP's internal parser funcitons and registered in the actual parser implementation.
It gives control to the current active handler object by calling the
endElement()
method.
throws |
|
---|---|
getLocation() : object
access |
public |
---|---|
object
the location of the current parser
parse()
parserSetOption( $opt, $val)
setHandler(\AbstractHandler $obj)
startElement( $parser, $name, $attribs)
This method is called by PHP's internal parser functions and registered
in the actual parser implementation.
It gives control to the current active handler object by calling the
startElement()
method.
throws |
|
---|---|
parser : resource
var |
---|
resource
file :
buffer :
error_string :
line :
location : \Location
handler :