S
Steve
Hello,
I'm creating an .aspx page that gets an XML document (as a string) from a
server via .NET remoting and returns it in the Response.Write method.
I'm saving the document to a file before I return it from the server and it
looks good, well formed and all. But, when I use Explorer to hit the .aspx
page, it returns the document but sticks this in the document some place:
<SN>96620150</SN>
<< 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.
Cannot have a DOCTYPE declaration outside of a prolog. Error processing
resource
'http://localhost/GetSpatialSearch/MySpatialSearch.aspx?layerName=centroid&s
n=98676052&format=xml'. Line 2, Position 11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
----------^
SPAN class="t">SN>96620066</SN>
The above text shows one of the elements (the <SN> element), then the error
text, then another element.
I'm doing a
Response.ContentType = "Text/XML";
prior to writing out to the Response object.
Anybody know how I can get rid of this or is it just and Internet Explorer
thing?
Thanks
Steve
I'm creating an .aspx page that gets an XML document (as a string) from a
server via .NET remoting and returns it in the Response.Write method.
I'm saving the document to a file before I return it from the server and it
looks good, well formed and all. But, when I use Explorer to hit the .aspx
page, it returns the document but sticks this in the document some place:
<SN>96620150</SN>
<< 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.
Cannot have a DOCTYPE declaration outside of a prolog. Error processing
resource
'http://localhost/GetSpatialSearch/MySpatialSearch.aspx?layerName=centroid&s
n=98676052&format=xml'. Line 2, Position 11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
----------^
SPAN class="t">SN>96620066</SN>
The above text shows one of the elements (the <SN> element), then the error
text, then another element.
I'm doing a
Response.ContentType = "Text/XML";
prior to writing out to the Response object.
Anybody know how I can get rid of this or is it just and Internet Explorer
thing?
Thanks
Steve