I don't own a recipe book, I just like to make things up as I go along. However this worked out quite well tonight:
<rant>
From random web browsing that started here and ended up here:
Here's an example of a link element that Radio's aggregator understands:Gah! If you are going to write a HTML parser do it right! Every time I see something like this I am thankful for CPAN and modules like HTML::TreeBuilder and HTML::Parser. With tools this powerful you don't have these issues.<link rel="alternate" type="text/xml" title="XML" href="http://www.scripting.com/rss.xml">
In order for it to work it must be formatted in exactly this way. It's totally brutal. If the attributes aren't all present, it fails. If they aren't in the correct order, it fails. If the whitespace isn't exactly as above, it fails. If the attributes aren't quoted, it fails.
Why is it so rigid? Writing an HTML parser is a big job, we had to write a simple one for this feature, it's utterly clueless about the power of HTML, by design. ;->
</rant>
fin