qberta01
Programmer
- Nov 14, 2005
- 113
Hello,
I am working with some code that returns a string. I would like the return value to be in XML so i can easily use XMLDoc in the main page:
Dim responseStream As System.IO.Stream = webResponse.GetResponseStream()
Dim responseEncoding As System.Text.Encoding = System.Text.Encoding.UTF8
' Pipes the response stream to a higher level stream reader with the required encoding format.
Dim responseReader As New StreamReader(responseStream, responseEncoding)
Dim responseContent As String = responseReader.ReadToEnd()
Return responseContent
----------------
Any help is greatly appreciated.
Q.
I am working with some code that returns a string. I would like the return value to be in XML so i can easily use XMLDoc in the main page:
Dim responseStream As System.IO.Stream = webResponse.GetResponseStream()
Dim responseEncoding As System.Text.Encoding = System.Text.Encoding.UTF8
' Pipes the response stream to a higher level stream reader with the required encoding format.
Dim responseReader As New StreamReader(responseStream, responseEncoding)
Dim responseContent As String = responseReader.ReadToEnd()
Return responseContent
----------------
Any help is greatly appreciated.
Q.