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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top