With which component? Zend_Feed or Zend_Feed_Writer?

With the writer you can either a) add a custom extension (see Zend_Feed_Writer 
extensions for examples) or b) get the Entry/Feed's DOMElement with 
getElement() and add it programatically using PHP's DOM methods. The second 
works fine for minor additions. The first exists to offer a more friendly API 
for longer extensions or RSS/Atom modules.

With Zend_Feed I'm less sure since I haven't used it in a while.

Paddy

 Pádraic Brady

http://blog.astrumfutura.com
http://www.survivethedeepend.com
OpenID Europe Foundation Irish Representative





________________________________
From: Frank Habermann <lordla...@lordlamer.de>
To: fw-general@lists.zend.com
Cc: Pádraic Brady <padraic.br...@yahoo.com>
Sent: Mon, March 1, 2010 7:11:11 PM
Subject: Re: [fw-general] zend_feed_writer with own namespace

Hi,

> $feed = new Zend_Feed_Writer_Feed;
> // add feed info
> $entry = $feed->createEntry();
> // add entry info
> $feed->addEntry($entry);
> $feedXml = $feed->render('atom');
>
> Anything to do with Zend_Feed_Writer is under that namespace - everything
> else is the older Zend_Feed.
Ok. Thanks for this first. But the question is now: How could i create my own 
tags in my entry with own xml namespace?

regards,
Frank

Reply via email to