Jump to content

Archived

This topic is now archived and is closed to further replies.

Pythondev

Read Rss Feed And Put Into Array

Recommended Posts

Ok,

I want to read a RSS feed and extract some of its contents and put them into arrays.

For example take a look at this snippet of an RSS feed from my site:


[code]<item>
<title>Glass Material</title>
<link>
http://www.tutorialdash.com/tutorial/3d-studio-max/textures/view/Glass-Material
</link>
<description>Glass Material - 3D Studio Max Tutorials</description>
</item>
<item>
<title>Cool Explosion</title>
<link>
http://www.tutorialdash.com/tutorial/3d-studio-max/special-effects/view/Cool-Explosion
</link>
<description>Cool Explosion - 3D Studio Max Tutorials</description>
</item>
<item>
<title>Cigarette Smoke</title>
<link>
http://www.tutorialdash.com/tutorial/3d-studio-max/special-effects/view/Cigarette-Smoke
</link>
<description>Cigarette Smoke - 3D Studio Max Tutorials</description>
</item>[/code]

There are three items here - after running it I want to have an array something like the following...

$item[0] = first item
$item[1] = second item
$item[2] = third item

$item[0][0] = first items title
$item[0][1] = first items link



etc..... How can this be done?


Remember this will in fact go through 25+ items each time not just 3...

Thanks

Share this post


Link to post
Share on other sites
I think this may be what your looking for:

[a href=\"http://magpierss.sourceforge.net/\" target=\"_blank\"]http://magpierss.sourceforge.net/[/a]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.