PHP xml_error_string() Function
Complete PHP XML Reference Manual
Definition and Usage
The xml_error_string() function gets the error description of an XML parser.
On success, this function returns the error description. On failure, it returns FALSE.
Syntax
xml_error_string(errorcode)
| Parameters | Description |
|---|---|
| errorcode | Required. Specifies the error code to use. This error code is the return value of the xml_get_error_code() function. |
Example
" . "Line: " . xml_get_current_line_number($xmlparser) . "" . "Column: " . xml_get_current_column_number($xmlparser) . "
"); } } xml_parser_free($xmlparser); ?>
The output of the code above is shown below:
ERROR: Mismatched tag
Line: 5
Column: 41
Complete PHP XML Reference Manual