Geeks With Blogs


Rodney Vinyard - .NET & SQL Developer When all is said and done, more will be said than done August 2008 Entries
Windows XP Backup


Windows XP Backup

Posted On Thursday, August 28, 2008 8:27 AM

Generic xmlTextReader
Generic xmlTextReader Original article: ////-----------------------... ////convert XML string to MemoryStream ////-----------------------... MemoryStream memoryStream = new MemoryStream(); byte[] data = Encoding.Unicode.GetBytes(s... memoryStream.Write(data, 0, data.Length); memoryStream.Position = 0; ////-----------------------... ......

Posted On Wednesday, August 13, 2008 2:26 AM

indent xml with .NET
Original Article: Is there a simple way to indent xml with dotnet? SQL Server returns a long xml string that is hard > to read.[/color] XmlReader r = new XmlTextReader(new StringReader(myXML)); StringWriter sw = new StringWriter(); XmlTextWriter w = new XmlTextWriter(sw); w.Formatting = Formatting.Indented; while (r.Read()) w.WriteNode(r, false); w.Close(); r.Close(); Console.WriteLine(sw.ToStri... -- Oleg Tkachenko [XML MVP] ......

Posted On Monday, August 11, 2008 2:09 AM

Copyright © Rodney Vinyard | Powered by: