NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlElement.GetDefaultNamespace

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;

Return Value

The namespace URI for this element. An empty string is returned if no "xmlns" attributes are found on this element and its parent elements.

Remarks

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".

See Also

XmlElement Class | XmlElement Members | System.Xml Namespace | GetNamespaceOfPrefix