public function registerXPathNamespace($prefix, $ns) { self::$NAMESPACES[spl_object_hash($this)][$prefix] = $ns; parent::registerXPathNamespace($prefix, $ns); }