Summary

The .NET Framework offers a special LINQ provider named LINQ to XML that enables working with XML documents. Via the System.Xml.Linq namespace, this provider allows creating and manipulating XML documents in an efficient way. Classes such as XDocument, XElement, XAttribute, XComment, and XDeclaration are self-explanatory and allow easy generation of XML documents. To query XML documents, you just write LINQ queries using the unified syntax that you already know, with a few additions such as the Descendants or Attribute property. Although efficient, System.Xml.Linq can be confusing when XML documents become larger. Luckily, Visual Basic provides the XML literals feature that enables the writing of XML markup code directly into the VB ...

Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.