Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert byte[] array back to xml

Status
Not open for further replies.

manjulam

Programmer
Feb 27, 2002
103
US
How do i convert a byte array to xml?
 
First you need to know what encoding your bytes are in -- either ASCII/ANSI (like an ISO-8859-1 encoding) or Unicode (UTF-8 or UTF-16). You would then run it thru the ToString method of either the System.Text.UTF8Encoding or System.Text.ASCIIEncoding class, depending.

Once you have it in a string, you can load it into a XmlDocument via it's LoadXml method.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top