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 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
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
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, 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 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