Gather XML News files into RSS?

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
vientorio
Forum Newbie
Posts: 11
Joined: Thu Dec 11, 2003 2:37 am
Location: New Zealand

Gather XML News files into RSS?

Post by vientorio »

Hello all,

I have just subscribed to a news feeder for my website. The Newsfeeder has a http directory filled with 30 or so .xml files for a news feeder.

I am running MAMBO 4.5 that has a component for newsfeeds, however i cannot get it to look at the entire xml source directory and gather the files to order them in a browser.

here are the source files http://syndication.apn.co.nz/headlines/xml/

what i need is a script maybee to gather the newest 20 or so files and then somehow parse them to RSS, a file that MAMBO will understand so i can display them on my website homepage.

If anybody can help it would be much appreciated.

Geoff
TheBentinel.com
Forum Contributor
Posts: 282
Joined: Wed Mar 10, 2004 1:52 pm
Location: Columbus, Ohio

Post by TheBentinel.com »

PHP has an XML parser that lets you view and work with XML in nodes, like the Microsoft parser. I haven't played with it, but it looks alot like the MS version. You can read about it here:

http://us3.php.net/xml

It's a pretty steep learning curve, but once you're comfy with the parser, it shouldn't be too hard to grab the top twenty files and combine them into one RSS file.
Post Reply