ganders Posted August 24, 2005 Posted August 24, 2005 hi the following code creates a memorystream from a string. this stream is then supposed to be used as source for a dataset. but this doesn't work. any ideas? best regards Dim s As String = "" Dim pStream As New System.IO.MemoryStream Dim pEncoding As New System.Text.UnicodeEncoding Dim pBuffer As Byte() s = "<?xml version='1.0' encoding='ISO-8859-1' standalone='yes'?>" s = s & "<RESULTS>" s = s & "<TABLE " s = s & "ID='1'" s = s & "ADDRESS='SRARR' />" s = s & "</RESULTS>" pBuffer = pEncoding.GetBytes(s) pStream.Write(pBuffer, 0, pBuffer.Length) pDS.ReadXml(pStream) Quote
ganders Posted August 24, 2005 Author Posted August 24, 2005 problem solved! using StringReader instead of MemoryStream works fine! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.