Serialization Question Using Browser

  • Thread starter Thread starter Tim Burda
  • Start date Start date
T

Tim Burda

I attempting to serialize an XML document back to a client (Internet
explorer).

I am using the following code to do this from within a .ASPX page
(requested via XMLHttpRequest):

XmlDocument mXMLResponse = <<Populated XML Document>>
BinaryFormatter formatter = new BinaryFormatter();

formatter.Serialize(Response.OutputStream, mXMLResponse.OuterXml);

First, is this the best way to serizialize XML.

Second, how do I try and decode the serialized data on the client
using javascript functions (I have access to COM objects such as
XMLHttp and ADO).


Anyone have any thoughts????

Thanks -
Tim Burda
 
Hello
A better way to write the XmlDocument to the response stream is
XmlDocument mXMLResponse = <<Populated XML Document>>
mXmlResponse.Save(Response.OutputStream);


Best regards
Sherif
 
This is how I do it now; however, I need to transfer in Binary to
maximize throughput.
 
Back
Top