Invokes the Expat parser and parses the specified $xmlText into $myXMLDoc. |
Signature: parse (& $myXMLDoc, $xmlText) |
Parameters:
DOMIT_Document myXMLDoc - The DOMIT_Document to be populated.
String xmlText - The xml string to be parsed.
|
Returns:
boolean - True if the text is valid XML, false if invalid.
|
Invokes the SAXY parser and parses the specified $xmlText into $myXMLDoc. |
Signature: parseSAXY(& $myXMLDoc, $xmlText) |
Returns:
boolean - True if the text is valid XML, false if invalid.
|
Captures the tag name and attributes of an xml element, then builds the element and appends it to the current DOMIT_Document. |
Signature: startElement($parser, $name, $attrs) |
Parameters:
Object parser - The instance of the XML parser doing the parsing.
String name - The name of the current element tag.
array attributes - An associative array containing the names / values of the element's attributes.
|
Captures the end element event. |
Signature: endElement($parser, $name) |
Parameters:
Object parser - The instance of the XML parser doing the parsing.
String name - The name of the current element tag.
|
Captures the text data from TextNodes and CDATASections and builds these nodes and adds them to the DOMIT_Document. |
Signature: dataElement($parser, $data) |
Parameters:
Object parser - The instance of the XML parser doing the parsing.
String data - The textual data of the node.
|