Returns the default namespace URI for this element.
[Visual Basic] Public Function GetDefaultNamespace() As String [C#] public string GetDefaultNamespace(); [C++] public: String* GetDefaultNamespace(); [JScript] public function GetDefaultNamespace() : String;
The namespace URI for this element. An empty string is returned if no "xmlns" attributes are found on this element and its parent elements.
This method examines the "xmlns" attributes of this element and its parent elements to determine the default namespace URI.
Given an XmlElement with the following text representation:
the GetDefaultNamespace method returns the value "urn:abc-schema".
XmlElement Class | XmlElement Members | System.Xml Namespace | GetNamespaceOfPrefix