R
Ronald S. Cook
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
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