tags:

views:

30

answers:

2

How can I read the captions of a RSS feed from a given website? I have to use either Magpie or PHP.

A: 

I Suggest you use Simplepie http://simplepie.org/ Its very good documented and easy to use

streetparade
I tried that but I didn't found a suitable example.
learningown
What do you understand under suitable?
streetparade
I wrote the code which outputs everything as XHTML-code. Now how can I determine whether some text is a caption or not. Probably I'm doing something wrong as I started studying just today.
learningown
A: 

You can try using simpleXML. Because an RSS feed is simply an XML file it should be fairly simple to parse it with simpleXML.

Sinan