Hi ofniedan, sorry for not answering before, I just noticed your message now due to... your email activity! :D
Each Zend_Feed_Element (including the feed instance itself) implements ArrayAccess interface. It means you can access any attribute via $element->enclosure['attribute']; Have a look at the following example. #!/usr/bin/env php <?php require 'helper.php'; require 'Zend/Feed.php'; $feed = Zend_Feed::import('http://www.phparch.com/c/news/atom'); foreach ($feed as $index => $item) { echo "$index. {$item->title}\n"; echo "\tlink: {$item->link['href']}\n"; } Here's the output PhpMate r8839 running PHP 5.2.5 (cli) (/usr/bin/env php) >>> feed-array-access.php 0. MTA release new Guide to PHP 5 Migration link: http://c7y.phparch.com/c/entry/1/news,20080610-guide_to_php_5_migration_published 1. MTA publishes php|architect's PHP Job Hunter's Handbook link: http://c7y.phparch.com/c/entry/1/news,20080602-php_job_hunters_handbook_published 2. MTA and ibuildings announce partnership link: http://c7y.phparch.com/c/entry/1/news,20080527-mta_and_ibuildings_partnership 3. php|tek 2008 95% sold out link: http://c7y.phparch.com/c/entry/1/news,20080428-phptek_almost_sold_out 4. Announcing our new Magento book link: http://c7y.phparch.com/c/entry/1/news,20080428-new_magento_book 5. First Magento class sold out; new dates announced for May link: http://c7y.phparch.com/c/entry/1/news,20080414-new_magento_training_dates ... -- Simone On Tue, Jun 10, 2008 at 10:44 PM, James Dempster <[EMAIL PROTECTED]> wrote: > lol very funny. > > Thanks for letting us know Wil, was wondering what was going on. > > /James Dempster > > > On Tue, Jun 10, 2008 at 9:41 PM, Wil Sinclair <[EMAIL PROTECTED]> wrote: > >> Hey all, you are probably seeing multiple copies of this message. It is >> not the sender's doing! I'm cleaning out the spam filter for this list, >> and he's just tried mailing several times from different addresses since >> he wasn't seeing his messages come through. >> Sender, if you'd like to get your messages through to lists, I would >> recommend against using phrases like "me love you long time!". ;) >> >> ,Wil >> >> > -----Original Message----- >> > From: ofniedan [mailto:[EMAIL PROTECTED] >> > Sent: Friday, June 06, 2008 3:56 AM >> > To: fw-general@lists.zend.com >> > Subject: [fw-general] Zend_Feed: accessing single tags (no closing >> > tags) >> > >> > >> > Sorry for the strange subject title, I just didnt know how to explain >> > this in >> > normal english ^_^ >> > >> > I use zend_feed to parse rss feeds, and some of them have tags that do >> > not >> > consist of opening/closing pair tags, but just one tag, with inside >> the >> > info >> > i need, for example: >> > <enclosure url="http://www.examble.com/image.jpg"/> >> > I googled for an hour now, and still i don't know how to use this >> tag.. >> > if i iterate through the rss items, and use $item->enclosure, it >> > returns >> > (obviously) a NULL. >> > >> > Anybody who could help me: me love you long time! >> > -- >> > View this message in context: http://www.nabble.com/Zend_Feed%3A- >> > accessing-single-tags-%28no-closing-tags%29-tp17619166p17619166.html >> > Sent from the Zend Framework mailing list archive at Nabble.com. >> >> >