Quantcast
Channel: Building a Google Product Feed in .Net (C#)? - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by Jon Skeet for Building a Google Product Feed in .Net (C#)?

$
0
0

The problem is that you're trying to create an element with a name of rss version="2.0". Instead, you should be creating an element with a name of rss, and setting the version attribute to have a value of 2.0:

xw.WriteStartElement("rss");xw.WriteAttributeString("version", "2.0");

Personally I'd use LINQ to XML instead of XmlWriter to start with, mind you - it's a much nicer API.


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>