LINQ to XML allows to manipulate XML documents using the familiar LINQ syntax. It is available in System.Xml.Linq
assembly. Prior to LINQ, the classes in System.Xml
assembly were used to manipulate XML documents. In this post, we will compare the newer LINQ to XML assembly with the older assembly.
Create element
Old way
XmlDocument
class is central to System.Xml
assembly.…