Get declared namespace : Namespace « XML « VB.Net






Get declared namespace

  


Imports <xmlns="http://www.domain.com">

Module Module1
    Sub Main()
        Dim aw As XNamespace = GetXmlNamespace()
        Dim root As XElement = _
            <Root>
                <Child/>
            </Root>
        Console.WriteLine(root)
    End Sub
End Module

   
    
  








Related examples in the same category

1.Import namespace
2.Using namespace and import it
3.XName.Namespace Property gets the namespace part of the fully qualified name.