Re: [Magpierss-general] Parsing inside of tag...
Status: Beta
Brought to you by:
kellan
From: BKDesign S. <br...@bk...> - 2007-05-09 10:28:43
|
I was trying that for a long time with no success and no find anything googling. Finally got it. The updated rss_parse.inc added enclosures. elseif ( $this->feed_type == RSS and $el == 'enclosure' ) { $this->current_item[$el][] = $attrs; $this->incontent = $el; } So, I added: elseif ( $this->feed_type == RSS and $el == 'thumbnail' ) { $this->current_item[$el][] = $attrs; $this->incontent = $el; } code: $thumb = $item['thumbnail'][0]['url']; Works here anyways... Bruce P bkdesign ----- Original Message ----- From: "Alexander Hurtado" <ale...@gm...> To: <mag...@li...> Sent: Wednesday, May 09, 2007 4:19 AM Subject: [Magpierss-general] Parsing inside of tag... > Hello! > First I would like ta say THANK YOU for a great tool! > > Now to my question: > I'm trying to parse a RSS line that looks like this > > <media:thumbnail url="some string" height="54" width="72" /> > > How do I extract the url string information from this tag? I have not > been able to find any information from the homepage or the FAQ. This > is why I ask you. > > Thank you and have a nice day! > > Alex H. > > > -- > =============================================== > Alexander Hurtado > Engineering Student in Information Technology > SkypeIN:+46-(0)8-50164979 > Mobile: +46-(0)708-302370 > ----------------------------------------------- > Home Page: http://hurtado.se > Email: al...@hu... > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Magpierss-general mailing list > Mag...@li... > https://lists.sourceforge.net/lists/listinfo/magpierss-general > > |