Documentation
getLastError
usage
message_str = xml->getLastError()
returns
The last error provoked by the use of the class
examples
$file = new XML('myfile.xml');
if(!$file->isloaded()){
echo $file->getLastError(); // displays "Unable to create XML document from myfile.xml : file doesn't exist"
exit();
}