Catches a CDATA Section event and processes the text
void
cdataElement
(Object &$parser, string $data)
-
Object
&$parser: A reference to the current SAX parser
-
string
$data: The current text data
Catches a comment node event and processes the data
void
commentElement
(Object &$parser, string $data)
-
Object
&$parser: A reference to the current SAX parser
-
string
$data: The comment data
Catches a data event and processes the text
void
dataElement
(Object &$parser, string $data)
-
Object
&$parser: A reference to the current SAX parser
-
string
$data: The current text data
Catches a default data event and processes the data
void
defaultDataElement
(Object &$parser, string $data)
-
Object
&$parser: A reference to the current SAX parser
-
string
$data: The current data
Catches a doctype event and processes the data
void
doctypeElement
(Object &$parser, string $data)
-
Object
&$parser: A reference to the current SAX parser
-
string
$data: The current data
Generates and appends a new text node from the parseContainer text
void
dumpTextNode
()
Catches an end element event and processes the data
void
endElement
(Object &$parser, string $name)
-
Object
&$parser: A reference to the current SAX parser
-
string
$name: The tag name of the current element
Catches an end namespace declaration event
void
endNamespaceDeclaration
(Object &$parser, string $prefix)
-
Object
&$parser: A reference to the current SAX parser
-
string
$prefix: The namespace prefix
Catches a notation node event and processes the data
void
notationElement
(Object &$parser, string $data)
-
Object
&$parser: A reference to the current SAX parser
-
string
$data: The current notation data
Parses xml text using Expat
boolean
parse
(Object &$myXMLDoc, string $xmlText, [boolean $preserveCDATA = true])
-
Object
&$myXMLDoc: A reference to the DOM document that the xml is to be parsed into
-
string
$xmlText: The text to be parsed
-
boolean
$preserveCDATA: True if CDATA Section nodes are not to be converted into Text nodes
Parses xml text using SAXY
boolean
parseSAXY
(Object &$myXMLDoc, string $xmlText, [boolean $preserveCDATA = true], mixed $definedEntities)
-
Object
&$myXMLDoc: A reference to the DOM document that the xml is to be parsed into
-
string
$xmlText: The text to be parsed
-
boolean
$preserveCDATA: True if CDATA Section nodes are not to be converted into Text nodes
Catches a processing instruction node event and processes the data
void
processingInstructionElement
(Object &$parser, string $target, string $data)
-
Object
&$parser: A reference to the current SAX parser
-
string
$target: The target of the processing instruction data
-
string
$data: The processing instruction data
Catches a start element event and processes the data
void
startElement
(Object &$parser, string $name, Array $attrs)
-
Object
&$parser: A reference to the current SAX parser
-
string
$name: The tag name of the current element
-
Array
$attrs: An array of the element attributes
Catches a start element event and processes the data
void
startElementNS
(Object &$parser, string $name, Array $attrs)
-
Object
&$parser: A reference to the current SAX parser
-
string
$name: The tag name of the current element
-
Array
$attrs: An array of the element attributes
Catches a start namespace declaration event and processes the data
void
startNamespaceDeclaration
(Object &$parser, string $prefix, string $uri)
-
Object
&$parser: A reference to the current SAX parser
-
string
$prefix: The namespace prefix
-
string
$uri: The namespace uri