Getting Descendants
Imports System Imports System.Reflection Imports System.Xml Module Module1 Sub Main() Dim xml As XElement = XElement.Load("People.xml") Dim record = xml.Descendants("firstname").First() For Each tag In record.Ancestors() Console.WriteLine(tag.Name) Next End Sub End Module
1. | Query all Ford cars | ||
2. | Using Linq to get default in a Office 2007 word document | ||
3. | Select all Descendants | ||
4. | Select nodes from Descendants |