I think using an ASHX file works well:
context.Respons e.ClearContent( );
context.Respons e.ContentType = "applicatio n/rss+xml";
XmlTextWriter xmlTextWriter = new
XmlTextWriter(c ontext.Response .OutputStream, System.Text.Enc oding.UTF8);
xmlTextWriter.F ormatting = Formatting.Inde nted;
xmlTextWriter.W riteStartDocume nt();
xmlTextWriter.W riteComment("Ge nerated with my xml / rss writer v1.0b");
xmlTextWriter.W riteStartElemen t("rss");
xmlTextWriter.W riteAttributeSt ring("version", "2.0");
{
xmlTextWriter.W riteStartElemen t("channel");
{
xmlTextWriter.W riteStartElemen t("title");
--
Andrew Robinson
www.binaryocean.com www.bellinghamdotnet.org
"Lloyd Dupont" <net.galador@ld > wrote in message
news:OR******** ********@TK2MSF TNGP11.phx.gbl. ..
I'm using a newsgroup/blog/mailing list/forums all in one provider.
After some negociation they would let me display the web interface of my
newsgroup with a special template.
This special tempalet could be provided as a dynamic XML file.
I'm thinking of using a ".ashx" to generate it, is it a good choice?
Anyway .ashx begine with a 'context.Respon se.ContentType = "my xml mime
type"'
so.. whatis the XML mimetype?
I'm thinking of using "text/xml" what do you think of that?