Re: Rss 2.0 namespaces and news aggregators
"Bill Kearney" <[email protected]> Sat, 17 Sep 2005 12:40:50 -0400
| Newsgroups | gmane.network.syndication.rss.devel |
|---|---|
| Organization | http://www.ideaspace.net/users/wkearney/foaf.xrdf |
| Message-ID | <[email protected]> |
> I am developing a newsfeed and would like to define my own namespaces.
> Do you know if news aggregators in general recognise extended
> namespaces?
What's your intention with regard to what the added data will do for the
user?
> I am having problems understanding how to use namespaces correctly and
> don't understand how to declare them.
This is an XML issue, not one specific to RSS. Basically you declare it
with an xmlns directive. Note, however, that the prefix letters used are
NOT significant. It's the namespace URI string itself that's important.
Thus these are equal:
xmlns:ns="http://someuri"
xmlns:project=http://someuri
xmlns:hamsandwich="http://someuri"
It's that "http://someuri" string that programs should use to handle the
content.
> I know this may seem oblivious to many of you, but for a newbie it can
> be quite confusing.
Welcome to XML. It's got a few sticking points like validation, encoding
and namespaces but once you learn those it's really pretty simple to use.
To test your feed be sure to run it through the validator:
http://www.feedvalidator.org
And once it's ready, you can register it with us on Syndic8
http://www.syndic8.com
-Bill Kearney
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/rss-dev/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/