|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Accessing XML in Visual Basic
Visual Basic provides XML axis properties for accessing and navigating LINQ to XML structures. These properties use a special syntax to enable you to access elements and attributes by specifying the XML names.
The following table lists the language features that enable you to access XML elements and attributes in Visual Basic.
Gets all phone elements that are child elements of the contact element.
Gets all type attributes of the phone element.
Gets all name elements of the contacts element, regardless of how deep in the hierarchy they occur.
Gets the first name element from the sequence.
Gets the string representation of the first object in the sequence, or Nothing if the sequence is empty.