Documentation
getLastError
usage
message_str = xml->getLastError()
retourne
The last error provoked by the use of the class
exemples
$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();
}