/** * return an Atom_Element or null from a tag name * * @param string $tagName * @return Atom_Element * @access protected */ protected function getElement($tagName='') { if($this->documentElement->getElementsByTagName($tagName)->length) { return Atom_Element::fromDOMElement($this->documentElement->getElementsByTagName($tagName)->item(0)); } else { return null; } }