public function xpathNSOne($path, $namespaces)
    {
        $result = $this->xpathNS($path, $namespaces);
        if(is_array($result))
            return current($result);

        return $result;

    }
public function xpathNSOne($path, $namespaces)
    {
        $result = $this->xpathNS($path, $namespaces);
        if(is_array($result))
            return current($result);

        return $result;

    }
public function xpathNSOne ( $ path , $ namespaces ) { $ result = $ this -> xpathNS ( $ path , $ namespaces ) ; if ( is_array ( $ result ) ) return current ( $ result ) ; return $ result ; }
Queries for a single result of an xpath query respecting the namespaces given

@param string $path       The xpath query
@param array  $namespaces The namespaces [prefix => ns]

@see SimpleXML::registerXPathNamespace()

@return mixed The SimpleXMLElement that matches the xpath query or FALSE
Queries for a single result of an xpath query respecting the namespaces given