private function createItem(XMLManager $xml)
    {
        $itemNode = $xml->getXml()->createElement('item');
        $channelNode = $xml->getXml()->getElementsByTagName('channel')->item(0);
        $channelNode->appendChild($itemNode);

        return $itemNode;
    }
private function createItem(XMLManager $xml)
    {
        $itemNode = $xml->getXml()->createElement('item');
        $channelNode = $xml->getXml()->getElementsByTagName('channel')->item(0);
        $channelNode->appendChild($itemNode);

        return $itemNode;
    }
private function createItem ( XMLManager $ xml ) { $ itemNode = $ xml -> getXml ( ) -> createElement ( 'item' ) ; $ channelNode = $ xml -> getXml ( ) -> getElementsByTagName ( 'channel' ) -> item ( 0 ) ; $ channelNode -> appendChild ( $ itemNode ) ; return $ itemNode ; }
Create an Item node

@param \Nekland\Bundle\FeedBundle\XML\XMLManager $xml
@return \DOMElement
Create an Item node