public function xPath() { $xpath = new \DOMXpath($this); $this->publicnamespace = $this->documentElement->lookupNamespaceUri(NULL); $xpath->registerNamespace('tmNotice', $this->publicnamespace); return $xpath; }