Home All Groups Group Topic Archive Search About

How to Send XML to client

Author
12 Jul 2006 9:43 PM
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);

Author
13 Jul 2006 2:18 PM
Francois Bonin [C# MVP]
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?

Show quote
"ad" <fly***@wfes.tcc.edu.tw> wrote in message
news:%23PBKLxfpGHA.3324@TK2MSFTNGP05.phx.gbl...
>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);
>
>
>
>
Author
14 Jul 2006 1:22 AM
ad
Thanks,
The content of my XML file is like:
- <dsHealth>
- <St>
  <PID>L125412515</PID>
.......




Show quote
"Francois Bonin [C# MVP]" <thec***@gmail.com> ¼¶¼g©ó¶l¥ó·s»D:ekCF2YopGHA.3***@TK2MSFTNGP03.phx.gbl...
> 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?
>
> "ad" <fly***@wfes.tcc.edu.tw> wrote in message
> news:%23PBKLxfpGHA.3324@TK2MSFTNGP05.phx.gbl...
>>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);
>>
>>
>>
>>
>
>
Author
14 Jul 2006 3:33 PM
Francois Bonin [C# MVP]
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.


Show quote
"ad" <fly***@wfes.tcc.edu.tw> wrote in message
news:eVMhNQupGHA.3600@TK2MSFTNGP04.phx.gbl...
> Thanks,
> The content of my XML file is like:
> - <dsHealth>
> - <St>
>  <PID>L125412515</PID>
> ......
>
>
>
>
> "Francois Bonin [C# MVP]" <thec***@gmail.com>
> ¼¶¼g©ó¶l¥ó·s»D:ekCF2YopGHA.3***@TK2MSFTNGP03.phx.gbl...
>> 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?
>>
>> "ad" <fly***@wfes.tcc.edu.tw> wrote in message
>> news:%23PBKLxfpGHA.3324@TK2MSFTNGP05.phx.gbl...
>>>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);
>>>
>>>
>>>
>>>
>>
>>
>
>

AddThis Social Bookmark Button