The System.Xml.Linq Namespace

The System.Xml.Linq namespace exposes objects for creating, reading, and manipulating XML documents. All objects inherit from System.Xml.Linq.XObject. Table 27.1 summarizes and describes available objects.

Image

TABLE 27.1 Objects Available in the System.Xml.Linq Namespace

You create an XML document declaring an instance of the XDocument class:

Dim myDocument As New XDocument

When you have the instance, you can add all acceptable objects mentioned in Table 27.1. The first required element is the XML declaration that can be added as follows and that is mandatory:

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.