PHP libxml_get_last_error () function
Definition and Usage
libxml_get_last_error () function to get the last error from libxml error buffer.
If successful, the function returns an error object. If it fails or libxml error buffer there are no errors, it returns FALSE.
grammar
libxml_get_last_error()
Examples
<?php
libxml_get_last_error()
?>
libxml_get_last_error()
?>
Complete PHP libxml Reference Manual