Loads a listener with the SimpleReporter interface.
SimpleTestXmlParser
SimpleTestXmlParser
(
&$listener,
SimpleReporter $listener)
Parses a block of XML sending the results to the listener.
boolean
parse
(string $chunk)
-
string
$chunk: Block of text to read.
Content between start and end elements.
void
_addContent
(resource $expat, string $text)
-
resource
$expat: Parser handle.
-
string
$text: Usually output messages.
Sets up expat as the XML parser.
resource
&_createParser
()
XML and Doctype handler. Discards all such content.
void
_default
(resource $expat, string $default)
-
resource
$expat: Parser handle.
-
string
$default: Text of default content.
End of element event.
void
_endElement
(resource $expat, string $tag)
-
resource
$expat: Parser handle.
-
string
$tag: Element name.
Test if tag is a leaf node with only text content.
@boolean
_isLeaf
(string $tag)
-
string
$tag: XML tag name.
Handler for start of event element.
void
_startElement
(resource $expat, string $tag, hash $attributes)
-
resource
$expat: Parser handle.
-
string
$tag: Element name.
-
hash
$attributes: Name value pairs. Attributes without content are marked as true.