public function xpath()
{
if (isset($this->_xpath) && (\FluentDOM::$isHHVM || $this->_xpath->document === $this)) {
return $this->_xpath;
}
$this->_xpath = new Xpath($this);
foreach ($this->_namespaces as $prefix => $namespace) {
$this->_xpath->registerNamespace($prefix, $namespace);
}
return $this->_xpath;
}