Try the libxml functions
libxml_use_internal_errors(TRUE);
$dom->load('whatever'); // or whatever you use for loading the DOM
libxml_clear_errors();
Instead of just clearing the erros, you can opt to handle them, though the above should be sufficient for most cases.
Gordon
2010-10-21 12:10:51