Page 1 of 1
Creating Namespaces/ custom tags to extend Atom Feed
Posted: Sun May 04, 2008 9:45 am
by kendall
Hey,
I have been scouring the web in search of articles that explain extending atom feeds. I have come across alot of articles but none of them give a clear "how-to" for people who are not familiar with xml and namespaces.
Can anyone shed some more light on this?
How do you create your own namespaces for extending atom feeds or rss?
do you create a file on your server with the markup? a DTD file?
whats the syntax? something like
element : atom { }
or something?
how do you call it
xlmns="whatever.com/namespaces/mynamspace.dtd
Re: Creating Namespaces/ custom tags to extend Atom Feed
Posted: Sun May 04, 2008 12:59 pm
by arjan.top
xmlns is xml namespace
xmlns:namespaceName="URI"
URI does not have to be valid URL, but it usually is (like documentation)
and then eceri element that is in your namespace:
<namespaceName:elementname></namespaceName:elementname>
Re: Creating Namespaces/ custom tags to extend Atom Feed
Posted: Sun May 04, 2008 3:08 pm
by kendall
arjan.top wrote:xmlns is xml namespace
xmlns:namespaceName="URI"
URI does not have to be valid URL, but it usually is (like documentation)
and then eceri element that is in your namespace:
<namespaceName:elementname></namespaceName:elementname>
so your saying to create a custom tag and namespace all i need to do is
pass some fake url in the xmlns attribute and then just add the tags in? uhm....
so if i wanted to use the tags in an atom feed....will it be parsed? how will it be handled?
Re: Creating Namespaces/ custom tags to extend Atom Feed
Posted: Sun May 04, 2008 3:57 pm
by arjan.top
parsers should ignore them
Re: Creating Namespaces/ custom tags to extend Atom Feed
Posted: Sun May 04, 2008 4:41 pm
by kendall
arjan.top wrote:parsers should ignore them
and what if i don't want them too?
Re: Creating Namespaces/ custom tags to extend Atom Feed
Posted: Mon May 05, 2008 3:35 am
by arjan.top
depends what parsers you have in mind ...
XML parser will of course parse the whole document, if you are talking about RSS/Atom readers it will be ignored
Re: Creating Namespaces/ custom tags to extend Atom Feed
Posted: Mon May 05, 2008 5:11 am
by kendall
arjan.top wrote:depends what parsers you have in mind ...
XML parser will of course parse the whole document, if you are talking about RSS/Atom readers it will be ignored
rss atom...darn it...what was the use of extending it if its going to be ignored...?