Displaying certain tags of an RSS feed

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gdsdiscgolfer
Forum Newbie
Posts: 1
Joined: Mon Oct 31, 2005 2:58 pm

Displaying certain tags of an RSS feed

Post by gdsdiscgolfer »

I have an RSS feed set up at:
http://xoap.weather.com/weather/local/0 ... 4543d24403

Under the tag

Code: Select all

<cc>
I need to display the "tmp" tag.
Under the

Code: Select all

<day d="0".....>
I need to display the "low" tag...
Under day d="1", I need to display both high and low.

How do I parse this RSS feed so that I can read and display just these few tags? Many thanks, Shane
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

using an XML or RSS parser, you can probably filter the information..

http://pear.php.net/package/XML_RSS
Post Reply