Dave Winer wrote:
>Another area that needs attention is to sort out the common uses of attributes
in different tools. Since this is XML, names are case-sensitive. And there is
even some variability beyond that. The first step should be to survey all the
existing tools, see what they produce and then collate the results. Then, once
that's done, it may be possible to have a simple set of recommendations that
enables more interop between tools. But first we have to see how far apart all
the tools actually are. I'll get the ball rolling on this, unless someone else
wants to take the lead. It's not a glamorous job, it requires that one be
thorough and be good at tabulating information.
>
>
>
When importing OPML files, here's what Bloglines does:
For every 'outline' tag after the opening tag, we do:
We look for the 'xmlurl' attribute. If we find it, we add that as a
subscription. If we also find a 'title' attribute, we use that for the
name of the subscription.
If we don't find the 'xmlurl' attribute, we look for 'text'. If we don't
find 'text', we look for 'title'. If we find one of those, and we do not
find 'url', we add a new folder. All subscriptions found after this tag
and before the closing </outline> are then inserted in that folder. We
only support one level of folders, so nested folders are ignored (but
the subscriptions within them are not ignored).
We consider all attributes case insensitive.
Here's an example of what we output when exporting subscriptions. This
example has 2 subscriptions in the 'Press/Journalists' folder, and two
subscriptions at the top level:
<?xml version="1.0" encoding="utf-8"?>
<opml version="1.0">
<head>
<title>Bloglines Subscriptions</title>
<dateCreated>Tue, 2 Dec 2003 21:04:44 GMT</dateCreated>
<ownerEmail>markf@...</ownerEmail>
</head>
<body>
<outline title="Subscriptions">
<outline title="Press/Journalists">
<outline title="Wired News" htmlUrl="http://www.wired.com/" type="rss"
xmlUrl="http://www.wired.com/news_drop/netcenter/netcenter.rdf" />
<outline title="Dan Gillmor's eJournal"
htmlUrl="http://weblog.siliconvalley.com/column/dangillmor/" type="rss"
xmlUrl="http://weblog.siliconvalley.com/column/dangillmor/index.xml" />
</outline>
<outline title="Weblogg-ed News" htmlUrl="http://www.weblogg-ed.com/"
type="rss" xmlUrl="http://www.weblogg-ed.com/xml/rss.xml" />
<outline title="wingedpig.com" htmlUrl="http://www.wingedpig.com/"
type="rss" xmlUrl="http://www.wingedpig.com/index.rdf" />
</outline>
</body>
</opml>
Mark
--
Mark Fletcher
Bloglines
http://www.bloglines.com