Well, you should probably remove the <html> and <body> and ideally hook
into the onLoad event.. your page should be empty
void override onLoad(...)
{
Response.Clear();
Response.ContentType = "text/xml";
Response.Write(UR XML HERE)
Response.End();
}
karl
--
http://www.openmymind.net/
"Ronald S. Cook" <> wrote in message
news:...
>I have an ASPX page that returns XML to the calling client. While the code
>below works, I don't think it's proper because it's not encoded as XML.
>I.e. special characters might screw things up.
>
>
>
> Can anyone please tell me the more proper way to do this?
>
>
>
> <%@ Page Language="C#" %>
>
>
>
> <html>
>
> <body>
>
> <%
>
> Response.Write("<?xml version='1.0'?>");
>
> Response.Write("<Westin><Event><Name>RECEPTION</Name><Floor>2nd
> Floor</Floor><StartTime>8:00 AM</StartTime><EndTime>10:00
> AM</EndTime></Event></Westin>");
>
> %>
>
>
>
> </body>
>
> </html>
>
>
>
> Thanks,
>
> Ron
>
>
>
>