Hi to all,
I am trying to parse an rss weather feed from the BBC like this one :
http://feeds.bbc.co.uk/weather/feeds/rs ... d/0008.xml
And the fact is that when i open the rss in the php using an fopen or even a @file(http://feeds.bbc.co.uk/weather/feeds/rs ... d/0008.xml) the result is different then what i can see if i open the source of the rss file and, more annoying, the one line telling the weather (sunny/cloudy/rainy...) is disappearing, i can't find it in my string. Do you know why this is happening, and how to deal with it ?
RSS feed parsing troubles
Moderator: General Moderators
Re: RSS feed parsing troubles
Thank you, indeed, seems better.
Now a last question on the topic. How can i get my object(SimpleXMLElement)#x ?
I see there seem to be an id numerotation, which is very helpful but i can't see a function allowing me to get one of the objects easily. Am i blind ?
Now a last question on the topic. How can i get my object(SimpleXMLElement)#x ?
I see there seem to be an id numerotation, which is very helpful but i can't see a function allowing me to get one of the objects easily. Am i blind ?
Re: RSS feed parsing troubles
Unless you're dead set on parsing the feed with code you've written yourself, I'd look at SimplePie
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.