Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XML construction in C#

Tags:

c#

xml

linq

Currently i need to construct and update large xml files. So what is the best C# xml parser to create or update the xml files? I heard about LINQ in c#, can this be used?

like image 695
Thiyaneshwaran S Avatar asked Dec 28 '22 20:12

Thiyaneshwaran S


1 Answers

For really large documents, you may want to use a plain XmlReader/XmlWriter pipelined approach, since this avoids loading the whole file into memory, which is the case with both XmlDocument DOM and LINQ-to-SQL.

like image 143
Lucero Avatar answered Dec 31 '22 14:12

Lucero