Valid OPML?

Posted in: FeedLounge, Development

I did a little cleanup on the OPML generated by FeedLounge today. The old OPML was basically the result of copying examples found in the wild, so I went through the necessary steps validating the output, reading the specs, and double-checking what I was seeing against NetNewsWire’s output. :)

I fixed most of the issues, but we still have one issue outstanding before the FeedLounge OPML validates. When a node has an attribute other than ‘text’, a ‘type’ attribute is also required. We include the title of the element in both the ‘text’ and ‘title’ attribute for compatibility. The inclusion of the ‘title’ attribute necessitates the inclusion of a ‘type’ attribute as well - according to the OPML Validator.

This is no problem for the subscription elements themselves, as a ‘type’ of ‘rss’ is appropriate here. However, for our tag nodes (nodes that indicate what tags or categories a feed is in) are not representing feeds, and a type of ‘rss’ seems inappropriate here. I tried setting a type of ‘tag’, but got a warning that told me to use only a known type.

So, I’m in a bit of a quandry. I want the OPML to validate, but I also want to maximize compatibility. To validate, it appears that my only choice is to remove the ‘title’ attribute from the tag outline element. To maximize compatibility, I need to leave the ‘title’ attribute in, but cannot make it validate due to the rigidness of the ‘type’ attribute.

For now, I’ve left the ‘title’ attribute in on these nodes, and not set the ‘type’ attribute1. What should I be doing here? What is the :scare: proper :/scare: solution?

  1. Partly because this is also how NNW does it. [back]

Popularity: 4% [?]

Posted March 4th, 2006 @ 11:42 PM

3 Replies

  1. Chris Meller adds this Comment:

    I would say ‘when in Rome…’ and do whatever other popular readers do.

    Have you checked FeedDemon or NewsGator Online to see how they handle such things? With NNW included, I’d say they’d represent the market and take whatever approach they have.

    March 5th, 2006 at 8:03 pm

  2. Michael Pate adds this Comment:

    You could try e-mailing Dave Winer.

    March 10th, 2006 at 3:29 pm

  3. rolandog adds this Comment:

    Sooo, did you find any conceivable solution? I’m doing the same ‘cleanup’ work right now,… and experimenting with OPML features, but can’t figure out what valid types there are…

    July 1st, 2006 at 5:08 pm

Add a Comment

Please note: Use of a non-personal web site or blog in the field below and/or comments that are off-topic, personal attacks, or support requests will likely be removed at my discretion.

Note: This post is over 2 years old. You may want to check later in this blog to see if there is new information relevant to your comment.

Around the web » « WordPress Mobile Edition 1.8

About This Site

This is the personal web site of Alex King, an independent developer based in Denver, Colorado USA. More...


Crowd Favorite

Crowd Favorite is my software and web development business.

We build web applications, design and develop custom WordPress themes and plugins, and build custom sites using WordPress as a CMS.


I also have a tumblog that aggregates my online content from other services (Twitter, Flickr, del.icio.us. etc.).

Ads