note 57738 rejected from function.dom-domdocument-loadhtmlfile by tularis
| From: | tularis@php.net | Date: | Wed, 12 Oct 2005 20:53:36 +0000 |
| Subject: | note 57738 rejected from function.dom-domdocument-loadhtmlfile by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-96920@lists.php.net to get a copy of this message | ||
Note Submitter: NOSP4M_lpetrov at mbox dot vidin dot net
----
here is the problem:
[code]
function __construct($file) {
$this->file=$file;
if(file_exists($file.".php") && file_exists($file.".html")) {
require_once($file.".php");
$this->dom = new DOMExtDocument();
$this->dom->validateOnParse = false;
$this->dom->strictErrorChecking = false;
$this->dom->formatOutput = true;
$this->dom->loadHTMLFile($file.".html");
global $__dynObjects;
$__dynObjects[$file] = $this;
}
else {
die("faila: $file; ne e nameren!:(");
}
[end of code]
when creating a new class with some custom tags ...
[result]
Warning: DOMDocument::loadHTMLFile() [function.loadHTMLFile]: Tag import invalid in searchGrid.html,
line: 48 in /home/www/lpetrov/web/DynObj.class.php on line 28
[end of result]
...any ideas how to hide this message? ...error reporting is not a good idea becouse i want to fix
some "warning" errors..
i tried like u see with strictErrorChecking & validateOnParse...
No ideas...please help