Last post Sep 22, 2014 01:20 AM by iperez_genius
Member
19 Points
266 Posts
Sep 18, 2014 07:49 PM|iperez_genius|LINK
I am trying to build an RSS feed for my blog.
When i try to add the property to the RSS node
xmlns:atom="http://www.w3.org/2005/Atom"
Like in
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
I get an error with the ':' character.
The ':' character, hexadecimal value 0x3A, cannot be included in a name.
I have no idea what to do to solve this.
Please let me know
rss
All-Star
16806 Points
2777 Posts
Sep 21, 2014 10:23 PM|Kevin Shen - MSFT|LINK
Hi iperez_genius,
If you want to use namespace, you will need to create the namespace object first.
XNamespace ns = "http://www.w3.org/2005/Atom";var doc = new XDocument(new XElement("rss",new XAttribute("version","2.0"),new XAttribute(XNamespace.Xmlns + "atmo", ns)));
Best Regards,
Kevin Shen.
Sep 22, 2014 01:20 AM|iperez_genius|LINK
Thanks Kevin.
That solved that problem.
could you possibly help with this post.
http://forums.asp.net/p/2009699/5779219.aspx?adding+atom+element+to+rss+feed
Member
19 Points
266 Posts
building an RSS
Sep 18, 2014 07:49 PM|iperez_genius|LINK
I am trying to build an RSS feed for my blog.
When i try to add the property to the RSS node
xmlns:atom="http://www.w3.org/2005/Atom"
Like in
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
I get an error with the ':' character.
The ':' character, hexadecimal value 0x3A, cannot be included in a name.
I have no idea what to do to solve this.
Please let me know
rss
Web Developer | Business Intelligence Analyst| Marketing Integration
All-Star
16806 Points
2777 Posts
Re: building an RSS
Sep 21, 2014 10:23 PM|Kevin Shen - MSFT|LINK
Hi iperez_genius,
If you want to use namespace, you will need to create the namespace object first.
Best Regards,
Kevin Shen.
rss
Member
19 Points
266 Posts
Re: building an RSS
Sep 22, 2014 01:20 AM|iperez_genius|LINK
Thanks Kevin.
That solved that problem.
could you possibly help with this post.
http://forums.asp.net/p/2009699/5779219.aspx?adding+atom+element+to+rss+feed
rss
Web Developer | Business Intelligence Analyst| Marketing Integration