|
The problem with this approach is that rssreader.RSSToHtml() does not return anything. It expects to place its output in the XmlWriter that is passed in.
What you want to do is have the XmlWriter write to a StringWriter instead of the console:
...
StringWriter sw = new StringWriter();
XmlTextWriter writer = new XmlTextWriter(sw);
...
rssreader.RSSToHtml(reader, writer);
return sw.ToString();
|