XML LINQ VB.Net

Imports System
Imports System.Xml
Imports System.Xml.XPath
Public Class MainClass
    Public Shared Sub Main()
        Dim xmlTree As XElement = _ 
            
                
                    
                        content
                    

                

                
                    
                        content
                    

                

            

        
        
        Dim greatGrandChildren = From el In xmlTree.Descendants _
                                 Where el.Name.LocalName.StartsWith("Great") _
                                 Select el       
        Dim allAncestors = From el In greatGrandChildren.AncestorsAndSelf.Distinct _
                           Select el
        
        For Each de As XElement In allAncestors
            Console.WriteLine(de.Name)
        Next
    End Sub
End Class