/** * Find an element using xfind * * @since ADD MVC 0.4.2 */ public function xfind($xpath) { return parent::factory($this->dom_xpath()->query($xpath)); }
/** * Gets the first item from the node list * */ public function first_item() { if ($this->instance->item(0)) { return dom_wrapper::factory($this->instance->item(0)); } else { return false; } }