Constructor for SAX parser
SAXY_Parser_Base
SAXY_Parser_Base
()
Appends an array of entity mappings to the existing translation table
Intended mainly to facilitate the conversion of non-ASCII entities into equivalent characters
void
appendEntityTranslationTable
(array $table)
-
array
$table: A list of entity mappings in the format: array('&' => '&');
Sets whether predefined entites should be replaced with their equivalent characters during parsing
void
convertEntities
(boolean $truthVal)
-
boolean
$truthVal: True if entity replacement is to occur
Fires a CDATA Section event
void
fireCDataSectionEvent
(string $data)
-
string
$data: The CDATA Section data
Fires a character data event
void
fireCharacterDataEvent
(string $data)
-
string
$data: The character data
Fires an end element event
void
fireEndElementEvent
(string $tagName)
-
string
$tagName: The end element tag name
Fires a start element event
void
fireStartElementEvent
(string $tagName, Array $attributes)
-
string
$tagName: The start element tag name
-
Array
$attributes: The start element attributes
Gets the nth character from the end of the string
string
getCharFromEnd
(string $text, int $index)
-
string
$text: The text to be queried
-
int
$index: The index from the end of the string
Parses the attributes string into an array of key / value pairs
Array
parseAttributes
(string $attrText)
-
string
$attrText: The attribute text
Parses character data
void
parseBetweenTags
(string $betweenTagText)
-
string
$betweenTagText: The character data
Sets a reference to the handler for the CDATA Section event
void
xml_set_cdata_section_handler
(mixed $handler)
-
mixed
$handler: A reference to the CDATA Section handler
Sets a reference to the handler for the data event
void
xml_set_character_data_handler
(mixed $handler)
-
mixed
$handler: A reference to the data handler
Sets a reference to the handler for the start element event
void
xml_set_element_handler
(mixed $startHandler, mixed $endHandler)
-
mixed
$startHandler: A reference to the start element handler