Michael,
I put the Response.ContentType = "text/xml"; line just above my
Response.Write(strXML); line, but since my source text has ampersands in it,
I still get
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and
then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
Whitespace is not allowed at this location. Error processing resource
'http://localhost/delphi/westin/westin.aspx'. Line 1...
<?xml version="1.0"?><Westin><Event><Group>ARK GROUP USA</Group><Booking>1-K
GROUP USA3&...
If I take out the ampersands, it displays fine. I must be missing
something.
Thanks,
Ron
"Michael Bray" <mbray@makeDIntoDot_ctiusaDcom> wrote in message
news:Xn****************************@207.46.248.16. ..
"Ronald S. Cook" <rc***@westinis.com> wrote in
news:#P**************@tk2msftngp13.phx.gbl:
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.
Specify the Response.ContentType:
Response.ContentType = "text/xml";
Also, take out ALL other tags, including <html> and <body>. You should
only be left with the <%@ .... %> and <% ... %> tags.
-mdb