RSS feed question -
do need xmlns links in rss code?
what following code mean?
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/commentapi/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" >
the xmlns
properties define xml namespaces.
for instance, xmlns:atom="http://www.w3.org/2005/atom"
defines namespace atom
uri
http://www.w3.org/2005/atom.
then, when create <atom:link>
element, can see having uri http://www.w3.org/2005/atom/link, parser know link, defined in atom specification.
note, parser cannot go name of namespace, have used xmlns:a="http://www.w3.org/2005/atom"
, make <a:link>
atom link tag.
Comments
Post a Comment