Currently, I need to create and update large xml files. So what is the best C # xml parser for creating or updating xml files? I heard about LINQ in C #, can this be used?
For really large documents, you can use the simple XmlReader / XmlWriter pipelining approach, as this avoids loading the entire file into memory, which is the case with both the XmlDocument DOM and LINQ to SQL.
XmlReader
XmlWriter
LINQ's LINQ capabilities for querying and working with large / complex data files are pretty good, and yet XElement usually has better performance than XmlDocument objects. Working through XElements also simplifies some of the traditional efforts and verbosity of traditional XML processing, especially namespaces are much easier to handle.
Linq's MSDN Link to XML: http://msdn.microsoft.com/en-us/library/bb387098.aspx
You can use SAX to parse large xml files; and XDocument for supporting XML file.
XDocument
Source: https://habr.com/ru/post/1306664/More articles:Make VS2010 to go to the file containing the error - visual-studio-2010Convert python numpy array to c ++ stl vector - c ++Hows makes a stitch injection in Ejb3 - javaMaven plugin for generating ISO file - javaJBoss Seam: components introduced in POJO but not Beans session - javaDjango 1.1 equivalent of 'in' operator - pythonrandom () in python - pythonIs this the right way to host a WCF service? - c #android stop - androidLike Object [] cloneable - javaAll Articles