Last post Mar 22, 2016 06:45 AM by Yohann Lu
Mar 21, 2016 02:22 PM|ariansen|LINK
I'm trying to create a w3c valid rss feed, but I cannot find out how to add the atom:link node that is required by the w3c validator.
When I try to add the node by using doc.CreateNode("atom:link"), the node is written as <link /> not <atom:link />
I'm really going nuts here. Hope someone can help me to find a solution on the validation error on the link.
Mar 21, 2016 03:47 PM|ariansen|LINK
I tried to add type="application/atom+xml" but that didn't work either.
I have r e a l l y run out of clues here. I hope someone can help me find the solution on the validator error.
In advance thanks a lot!
Mar 22, 2016 06:45 AM|Yohann Lu|LINK
The atom:link element defines a relationship between a web resource (such as a page) and an RSS channel or item (optional). The most common use is to identify an HTML representation of an entry in an RSS or Atom feed.
An RSS feed can identify its own URL using the atom:link element within a channel. The link must have the rel attribute "self", an href attribute containing the feed's URL and may have a type attribute of "application/rss+xml":
<atom:link href="http://dallas.example.com/rss.xml" rel="self" type="application/rss+xml" />
You can refer the following links for getting more information.
1: More information about atom:link in the below:
2: Question about RSS feed: