[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [syndication] Seeking Simple Spot for Metadata
> <generic-code type="league" key="l.nhl.com" name="NHL"/>
>
> where that type attribute would be "sport" or "league" or "team".
>
> Seems silly to make up a new namespace for this, or to call in a
> SportsML namespace for just an unordered set of generic pieces of
> metadata.
It's not hard to make up a namespace -- from the looks of that element
it seems that you've almost done so with the "key" attribute.
Try:
<nhl:league>NHL</nhl:league>
with xmlns:nhl="http://nhl.com/nhl-rss-ns#" tagged onto the <rss>
element at the top of the feed.
XML namespaces are just what you want for unordered metadata ;)
Cheers,
Phil