How to Send XML to client

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I am using VS2005 to develop Asp.Net program.
I use the codes below to create a XML stream:
How can I set the Stream to client?



//-----------------------------------------------------------------------------
MemoryStream sm= new MemoryStream();
dsHealth.WriteXml(sm);
 
It depends in what circumstances (within what method of your code) you
generate that XML.
You most probably could use the Response.Write() method to directly write
the XML onto the page that the client will see in his browser.
Could you tell us more about the context of this XML generation?
 
Thanks,
The content of my XML file is like:
- <dsHealth>
- <St>
<PID>L125412515</PID>
.......
 
Oops. I'm sorry I wasn't clear before.
I meant the context in the source code (within what method) where you are
trying to send that XML.
 
Back
Top