LINQ Farm: Preserving Formatting with LINQ to XML(blogs.msdn.com)
submitted by
CharlieCalvert(7875) 3 years, 7 months ago
In a previous post, you saw how to work with line numbers when using LINQ to XML to read a file. This post continues in the same vein, but this time the focus is on how to: Read in an XML file with an arbitrary format, and then write it back out to disk in exactly the same format; Read in an XML file with an arbitrary format, and write it back out with standard formatting. Some scenarios where you might need this functionality include reading a document from one location and writing it to another location, or reading in a document, editing it, and writing it back out with new data, but the same format.
|category: Linq
|Views: 15
tags:
LINQ another
Everyones tags:
Your Tags: