====== render ======
{#JAPI Joomla.Framework Document JDocumentRendererAtom::render #}
Renders the feed.
Extracts the data from the document object and wraps it into ATOM format feed markup.
===== Syntax =====
string render ()
===== Examples =====
$feedDoc =& JDocument::getInstance( 'feed' );
$feedDoc->syndicationURL = 'http://example.com/feed.php';
$feedDoc->copyright = 'Copyleft(C)';
$feedDoc->editor = 'Feed Editor';
$feedDoc->title = 'Feed Title';
$feedDoc->subtitle = 'Feed sub title';
$item = new JFeedItem();
$item->title = 'Item Title';
$item->link = 'http://example.com/index.php?item_title';
$item->description = 'About the Item';
$item->date = mktime();
$item->author = 'Joe Blow';
$item->category = 'General Category';
$feedDoc->addItem( $item );
jimport( 'joomla.document.renderer' );
jimport( 'joomla.document.feed.renderer.atom' );
$renderer = new JDocumentRendererAtom( $feedDoc );
echo $renderer->render();
might produce:
Feed Title
2007-05-26T02:55:54-04:00
Feed Editor
Joomla! 1.5 - Open Source Content Management
Item Title
2007-05-26T02:55:54-04:00
2007-05-26T02:55:54-04:00
http://example.com/index.php?item_title
Joe Blow
About the Item
----
~~DISCUSSION~~