xml_parse

(PHP 4, PHP 5, PHP 7) Start parsing an XML document int xml_parse ( resource $parser, string $data [, bool $is_final = false ] ) xml_parse() parses an XML document. The handlers for the configured events are called as many times as necessary. Parameters: parser A reference to the XML parser to use. data Chunk of data to parse. A docume

xml_parse_into_struct

(PHP 4, PHP 5, PHP 7) Parse XML data into an array structure int xml_parse_into_struct ( resource $parser, string $data, array &$values [, array &$index ] ) This function parses an XML string 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. Parameters:

xml_get_current_column_number

(PHP 4, PHP 5, PHP 7) Get current column number for an XML parser int xml_get_current_column_number ( resource $parser ) Gets the current column number of the given XML parser. Parameters: parser A reference to the XML parser to get column number from. Returns: This function returns FALSE if parser does not refer to a valid parser, or else it r

xml_parser_get_option

(PHP 4, PHP 5, PHP 7) Get options from an XML parser mixed xml_parser_get_option ( resource $parser, int $option ) Gets an option value from an XML parser. Parameters: parser A reference to the XML parser to get an option from. option Which option to fetch. XML_OPTION_CASE_FOLDING and XML_OPTION_TARGET_ENCODING are available. See xml_parser_set_opti

xml_parser_create

(PHP 4, PHP 5, PHP 7) Create an XML parser 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. Parameters: encoding The optional encoding specifies the character encoding for the input/output in PHP 4. Starting from PHP 5, the input encoding is a

xml_parser_free

(PHP 4, PHP 5, PHP 7) Free an XML parser bool xml_parser_free ( resource $parser ) Frees the given XML parser. Parameters: parser A reference to the XML parser to free. Returns: This function returns FALSE if parser does not refer to a valid parser, or else it frees the parser and returns TRUE.

xml_parser_set_option

(PHP 4, PHP 5, PHP 7) Set options in an XML parser bool xml_parser_set_option ( resource $parser, int $option, mixed $value ) Sets an option in an XML parser. Parameters: parser A reference to the XML parser to set an option in. option Which option to set. See below. The following options are available: XML parser options Option cons

xml_parser_create_ns

(PHP 4 >= 4.0.5, PHP 5, PHP 7) Create an XML parser with namespace support 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. Parameters: encoding The optional encoding specifies t

xml_get_error_code

(PHP 4, PHP 5, PHP 7) Get XML parser error code int xml_get_error_code ( resource $parser ) Gets the XML parser error code. Parameters: parser A reference to the XML parser to get error code from. Returns: This function returns FALSE if parser does not refer to a valid parser, or else it returns one of the error codes listed in the error codes se

xml_get_current_byte_index

(PHP 4, PHP 5, PHP 7) Get current byte index for an XML parser int xml_get_current_byte_index ( resource $parser ) Gets the current byte index of the given XML parser. Parameters: parser A reference to the XML parser to get byte index from. Returns: This function returns FALSE if parser does not refer to a valid parser, or else it returns which b