473,327 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Build an OMPL file from RSS feeds

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
2 2203
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
Rob,

Also here is some other good resources:

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

Mike
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: plazma_41 | last post by:
Are there any uses for rss feeds on commercial websites selling products/services? Yes! I've just realized that eMaximarket Auctions ( http://www.emaximarket.com ) provides RSS feeds. For...
8
by: Al Knowles | last post by:
I have researched and tried every method I can find for passing a two-page tif file from a VB6 application to a web service via XML. These include XMLTextReader.ReadBase64, Convert.FromBase64,...
2
by: alex | last post by:
I've got a control I need to release as both a regular and strong named version. The problem I'm running into is that it seems without creating a new project file and assemblyinfo.cs file I don't...
3
by: michael.lang | last post by:
I am using PostBuild events in a C# project to run some tasks, but only when in release configuration mode. The build events run perfectly as expected when run. The problem comes when I save the...
3
by: retsam | last post by:
All, I'm working on an ASP.NET 2.0 (C#) page and have a question on how to build a string that includes line feeds (new lines) that displays properly on an ASP.NET page. Here's what I got: ...
2
by: dkode | last post by:
I built an asp.net usercontrol that consumes rss feeds that I specify the url for. Some of them (MVP blogs, google news) consumes the feeds just fine. and other times (75%) it chokes on...
5
by: Shawn | last post by:
Hi, I want to understand and follow RSS feed because many web pages provide RSS feed for updated new data(e.g. http://www.weather.gov/rss/). But I never get how to use it. The link below suppose...
2
by: Daniel | last post by:
i seem to be having memory issues, will deplying a release build instead of a debug build help with memory usage of my .net process?
4
by: | last post by:
Hi, After installing SP1 for VS2008 and SP1 for .NET 3.5 we get the following warning in a VS2005 build: error CS0618: Warning as Error: 'System.Windows.UIElement.BitmapEffect' is obsolete:...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.