By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,534 Members | 1,830 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,534 IT Pros & Developers. It's quick & easy.

Build an OMPL file from RSS feeds

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

TIA,

Rob

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
Jul 17 '05 #2

P: n/a
Rob,

Also here is some other good resources:

http://feeds.scripting.com/powerOpmlGuidelines
http://www.opml.org/about

Mike
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.