Page 1 of 1

Gather XML News files into RSS?

Posted: Mon Mar 29, 2004 1:11 am
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

Posted: Mon Mar 29, 2004 12:16 pm
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.