how do I tell the DOM not to attempt to parse an XML file if it's invalid? I'll get warnings like this: "Warning: DOMDocument::loadXML() [function.DOMDocument-loadXML]: Space required after the Public Identifier in Entity, line: 1 in..." and such. below is the code that I've been using:any tips?PHP Code:$dom=new DomDocument();
$dom->preserveWhiteSpace = false;
$dom->validateOnParse=false;
//$dom->loadXML($fxml);
$fxml=trim($fxml);
//echo $fxml;
if($dom->loadXML($fxml)==false){
...






Bookmarks