in

Drowning In Technical Debt

C# | ASP.NET | SharePoint | SQL | Architecture | SOA |
All Tags » C# » xml (RSS)

Browse by Tags

Sorry, but there are no more tags available to filter with.
  • re: XmlDocument-to-Byte-Array - don't forget your usings. =)

    This is in response to this article and is me giving dennis a hard time. =P byte [] XmlToByte(XmlDocument d) { using (StringWriter sw = new StringWriter()) { using (XmlTextWriter xw = new XmlTextWriter(sw)) { d.WriteTo(xw) ; ASCIIEncoding encoding = new ASCIIEncoding() ; return encoding.GetBytes(sw.ToString...
    Posted to roy ashbrook (Weblog) by royashbrook on 06-22-2007
  • XmlDocument to Byte[]

    1 2 3 4 5 6 7 8 9 StringWriter sw = new StringWriter(); XmlTextWriter xw = new XmlTextWriter(sw); / / Save Xml Document to Text Writter. doc.WriteTo(xw); System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding(); // Convert Xml Document To Byte Array. byte [] docAsBytes = encoding.GetBytes...
    Posted to Dennis J. Bottjer | MVP ASP.NET (Weblog) by admin on 10-10-2006
Page 1 of 1 (2 items)
Community Credit
Powered by Community Server (Commercial Edition), by Telligent Systems