/** * Function &findNode * * @author David S. Callizaya S. <*****@*****.**> * @access public * @param eter string xpath * @return string */ public function &findNode($xpath) { if (substr($xpath, 0, 1) == '/') { return parent::findNode(substr($xpath, 1)); } else { if (isset($this->currentNode)) { if ($this->currentNode->name === $this->name) { return parent::findNode($xpath); } else { return $this->currentNode->findNode($xpath); } } else { return $null; } } }