Set response type to xml (VB.net)
<%@ Page Language="vb" %>
<html>
<head>
<title>Response property example</title>
<script runat="server">
Sub Page_Load()
Response.ContentType = "text/xml"
Message.Text = "This page will be displayed as XML in " & _
"Internet Explorer 5.0 or above."
End Sub
</script>
</head>
<body>
<asp:label id="Message" runat="server"/>
</body>
</html>
Related examples in the same category