Easy to read and write XML using C #

I already found something to read XML, however I find it difficult to write and update XML.

Can anyone help provide some code or advice on the best way to write to XML files?

+2


a source to share


2 answers


Use LINQ to XML .



Based on the fact that you are using .NET 3.5 , LINQ to XML makes life easier when working with XML. Reading, writing and modifying XML documents via LINQ is a breeze. The link I posted is just a quick overview, but it should at least give you an idea of ​​what it likes.

+8


a source


Load it into XmlDocument . Also see the link for more information and examples.



+1


a source







All Articles