Both DOM and SimpleXML check the XML file is well formed and generate return a null reference or false if the XML is bad. You can check for this before continuing.
<?php
if (! $doc = @simplexml_load_file('/path/to/file')) {
echo('error loading file');
}
echo ($doc->asXML());
?>
Don't forget the error supression operator, otherwise the simplexml_load_file() function will spit out a load of warnings.