You are here: Re: Build an OMPL file from RSS feeds « PHP Programming Language « IT news, forums, messages
Re: Build an OMPL file from RSS feeds

Posted by Mike Willbanks on 05/14/05 02:18

Rob,

> Anything like this around anywhere? Need to be able to input RSS
> information for several feeds and have it create an OMPL file.

I am unsure if there is any applications that already current do this.
But this should be pretty easy. If you take a peak at this guys OPML
feed you can see what elements are needed and the attributes used:
http://www.jasonamyers.com/wow/feeds.opml

You can also find the OPML specification document at:
http://www.opml.org/spec

For me I built an xml parser and writer to handle it all from an array
to build the documents for me. As you might be able to find several of
those around now days...

Also if you wanted to do a quick and easy implementation you could do
something of this sort:

//define feeds
$feed = array();
$feed['My Rss Feed'] = 'http://www.someurl.com/rss.rss';
$feed['Some Other RSS Feed'] = 'http://www.someotherurl.com/rss.rss';

//create the starting markup
echo('<?xml version="1.0" encoding="UTF-8"?>');
echo("\r\n".'<opml version="1.0">');
echo("\r\n\t".'<head>'."\r\n\t".'</head>');
echo("\r\n\t".'<body>');

foreach($feed as $k => $v) {
echo("\r\n\t\t".'<outline text="'.$k.'" xmlUrl="'.$v.'" type="rss"
version="RSS"></outline>');
}
echo("\r\n\t".'</body>');
echo("\r\n".'</opml>');

That might or might not help you but is always a good starting point
from creating something from scratch. This was a really quick and dirty
mockup of what you could do to make it using the array keys as the Text
and the url as the value.

Mike

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация