LINQ Farm: Preserving Formatting with LINQ to XML(blogs.msdn.com)

submitted by CharlieCalvertCharlieCalvert(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.

add a comment |category: |Views: 15

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story