Esempio n. 1
0
 /**
  * registers a prefix for use with xpath
  *
  * @param string $prefix
  */
 protected function registerNS($prefix, $uri = null)
 {
     if ($uri == null) {
         $uri = $this->dom->lookupNamespaceUri($prefix);
     }
     $this->xpath->registerNamespace($prefix, $uri);
 }