XDocument or XmlDocument

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I have a large XML and i want to parse the xml and set the value of each xml element. I was planning to use Linq to XML (System.Xml.Linq and System.Xml.XPath) to get the element and set the value. But then i remember that i can also acheive this using the
old XmlDocument class. I wanted to know which will be more efficient XDocument or XmlDocument?
Also,since i already know the structure of the XML, would it be more efficient to build the expected tree using Linq to XML compare to parsing the XML and then set the value? Which will give me better performance?

View the full article
 
Back
Top