/** * Overload default {@see AtomizerStruct::fromXML} function to support * inclusion of items * * @param DOMElement The XML data to create this feed from */ public function fromXML( $xml ) { parent::fromXML( $xml ); $items = $xml->getElementsByTagName('item'); foreach( $items as $node ) { $this->addItem( new AtomizerItem( $node ) ); } }