XElement.Name Property gets or sets the name of this element.
Imports <xmlns:aw="http://www.domain.com">
Module Module1
Sub Main()
Dim el1 As XElement = <Root>content</Root>
Console.WriteLine(el1.Name)
Dim el2 As XElement = <aw:Root>content</aw:Root>
Console.WriteLine(el2.Name)
Console.WriteLine(el2.Name.Namespace)
Console.WriteLine(el2.Name.LocalName)
Dim aw as XNamespace = GetXmlNamespace(aw)
el2.Name = aw + "NewName"
Console.WriteLine(el2.Name)
End Sub
End Module