PHP XML Parser Functions
EditRocket provides the following information on XML Parser functions in the PHP source code builder.
string utf8_decode ( string $data ) - This function decodes data, assumed to be UTF-8 encoded, to ISO-8859-1.
string utf8_encode ( string $data ) - This function encodes the string data to UTF-8, and returns the encoded version.
string xml_error_string ( int $code ) - Gets the XML parser error string associated with the given code.
int xml_get_current_byte_index ( resource $parser ) - Gets the current byte index of the given XML parser.
int xml_get_current_column_number ( resource $parser ) - Gets the current column number of the given XML parser.
int xml_get_current_line_number ( resource $parser ) - Gets the current line number for the given XML parser.
int xml_get_error_code ( resource $parser ) - Gets the XML parser error code.
int xml_parse ( resource $parser , string $data [, bool $is_final ] ) - xml_parse() parses an XML document. The handlers for the configured events are called as many times as necessary.
int xml_parse_into_struct ( resource $parser , string $data , array &$values [, array &$index ] ) - This function parses an XML file into 2 parallel array structures, one (index) containing pointers to the location of the appropriate values in the values array. These last two parameters must be passed by reference.
resource xml_parser_create ([ string $encoding ] ) - xml_parser_create() creates a new XML parser and returns a resource handle referencing it to be used by the other XML functions.
resource xml_parser_create_ns ([ string $encoding [, string $separator ]] ) - xml_parser_create_ns() creates a new XML parser with XML namespace support and returns a resource handle referencing it to be used by the other XML functions.
bool xml_parser_free ( resource $parser ) - Frees the given XML parser.
mixed xml_parser_get_option ( resource $parser , int $option ) - Gets an option value from an XML parser.
bool xml_parser_set_option ( resource $parser , int $option , mixed $value ) - Sets an option in an XML parser.
bool xml_set_character_data_handler ( resource $parser , callback $handler ) - Sets the character data handler function for the XML parser parser.
bool xml_set_default_handler ( resource $parser , callback $handler ) - Sets the default handler function for the XML parser parser.
bool xml_set_element_handler ( resource $parser , callback $start_element_handler , callback $end_element_handler ) - Sets the element handler functions for the XML parser.
bool xml_set_end_namespace_decl_handler ( resource $parser , callback $handler ) -
bool xml_set_external_entity_ref_handler ( resource $parser , callback $handler ) - Sets the external entity reference handler function for the XML parser parser.
bool xml_set_notation_decl_handler ( resource $parser , callback $handler ) - Sets the notation declaration handler function for the XML parser parser.
bool xml_set_object ( resource $parser , object &$object ) - This function allows to use parser inside object.
bool xml_set_processing_instruction_handler ( resource $parser , callback $handler ) - Sets the processing instruction (PI) handler function for the XML parser parser.
bool xml_set_start_namespace_decl_handler ( resource $parser , callback $handler ) -
bool xml_set_unparsed_entity_decl_handler ( resource $parser , callback $handler ) - Sets the unparsed entity declaration handler function for the XML parser parser.