/** * Gets the root node. * * @return DomNode */ public function root() { return DomNode::createFromElement($this->document->documentElement); }
/** * Returns the value at specified offset. * * This function implements ArrayAccess::offsetGet. * * @param integer $offset Offset * * @return DomNode */ public function offsetGet($offset) { return DomNode::createFromElement($this->elements[$offset]); }