freelanceprogrammers.org Forum Index » PHP

parse XML(rss) file problem


View user's profile Post To page top
domeniul Posted: Sun Aug 28, 2005 12:10 am


Joined: 28 Aug 2005

Posts: 1
parse XML(rss) file problem
Hi,i need some help.I have an RSS file,actually i don`t know if
it`s 100% a XML file,it has also something particular before some
description tag,something like this:
<enclosure url="http://www.bla.com/9568.jpg" length="100"
type="image/jpeg"/>

the enclosure tag does not close like regular XML file,i read the rss
news with lastrss.php;my question is any way that it parse the picture
and show it(lastrss.php just ignore enclosure tag and i don`t want
that,i wanna use the picture),what do i have to modify there to work,
or if there is a way with XML Parser Functions to do that.

a part of the rss file:

<item>
<title>Career Minor Leaguer Is Defying the Law of Averages
(washingtonpost.com)</title>
<link>http://us.rd.yahoo.com/dailynews/rss/topstories/*http://news.
yahoo.com/news?tmpl=story&u=/washpost/20050825/ts_washpost/
career_minor_leaguer_is_defying_the_law_of_averages</link>
<guid isPermaLink="false">washpost/20050825/
career_minor_leaguer_is_defying_the_law_of_averages</guid>
<pubDate>Thu, 25 Aug 2005 05:00:00 GMT</pubDate>
<enclosure url="http://www.bla.com/9568.jpg" length="100"
type="image/jpeg"/>
<description>washingtonpost.com - OMAHA -- It`s another lost night
in the baseball life of Rick Short. Another night of lucky numbers, of
scratchy recordings of the national anthem, and a crowd so small the
foul balls rattle around the seats with a hollow thud.</description>
</item>
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help