Hi all,

I am writing some code that will take an existing atom feed and alter the
(alternate) link and content in the feed, but I can't work out how to change
the (alternate) link!

Here's the code I have so far which updates the content:

$feed = new Zend_Feed_Atom('http://mysite.com/originalfeed.xml');

// Modify the feed
foreach ($feed as $entry) {
   $entry->content = updateContent($entry->content(), array());
   $entry->saveXML();
}

$feed->send();

I have worked out how to get the link with $entry->link('alternate'), but I
can't work out how to set it.

Any advice?

Cheers,

Ben
-- 
View this message in context: 
http://www.nabble.com/How-do-I-update-the-link-in-zend_feed_atom-tp21811100p21811100.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to