There are multiple ways, best two:
Us the System.IO.StringReader.
//Good when you want to preserve the UTL character
byte[] bytesFromString = System.Text.Encoding.UTF8.GetBytes(xml);
System.IO.Stream stream = new System.IO.MemoryStream(xmlBytes);
Monday, January 04, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment