Mono Class Library: System.Xml.XmlNode Overview | Members

System.Xml.XmlNode.GetNamespaceOfPrefix Method

Gets the URI associated with the given namespace prefix. [Edit]

public virtual string GetNamespaceOfPrefix (string prefix)

Parameters

prefix
A namespace prefix. [Edit]

Returns

The namespace URI corresponding to the prefix, or the empty string if no namespace corresponds to the prefix. [Edit]

Remarks

The attributes of this node and its ancestors are traversed until an xmlns:prefix attribute is found. The value of that attribute is returned. [Edit]

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0