private string GetFeedContent(SyndicationFeed feed) { using (var sw = new StringWriter()) using (var xw = XmlWriter.Create(sw)) { feed.GetAtom10Formatter().WriteTo(xw); xw.Flush(); return sw.ToString(); } }