public void ProcessRequest(HttpContext context)
{
SyndicationFeed feed = GetNoveltiesFeed();
var output = new StringWriter();
var writer = new XmlTextWriter(output);
new Rss20FeedFormatter(feed).WriteTo(writer);
context.Response.ContentType = "application/rss+xml";
context.Response.Write(output.ToString());
}
Немає коментарів:
Дописати коментар