Dave Anderson said:
XML has nothing whatsoever to do with Response.BinaryWrite(). Unexpected
whitespace characters are almost always going to corrupt the expected format
of binary data.
(sigh!) Clear it is you that has trouble reading. I'll cut'n'paste the
relevent portions:-
<quote>
ASP has an unfortunate behaviour in this regard:-
<!-- #include virtual="/someinclude.asp" -->
<html>
<body>
...
The CRLF before the <html> tag is included in the response of the inline
content hence extra whitespace at the start.
However something like this:-
<!-- #include virtual="/someinclude.asp" -->
<%
Response.Write "<html>"
%>
<body>
Does not suffer this problem because ASP does not create send the CRLF that
preceeds an inline script.
</quote>
This principal applies to code like this as well:-
%>
<!-- #include file="abcdefg.inc.asp" -->
<%
Neither CRLF sequence in the above preceeds content hence neither is sent.
Try it for yourself.