PHP Code:
$this->dom = DOMDocument::load($fileName);
$this->xpath = new domxpath($this->dom);
Code:
Strict Standards: Non-static method DOMDocument::load() should not be called statically, assuming $this from incompatible context in [...] on line 26
Nun habe ich mir überlegt, egal, schreibe ich das halt um.
PHP Code:
$this->domDoc = new DOMDocument();
$this->dom = $this->domDoc->load($fileName);
$this->xpath = new domxpath($this->dom);
Wie gebe ich XPath jetzt das DomDocument?
Danke schonmal.
Comment