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

System.Xml.XmlNode.GetPrefixOfNamespace Method

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

public virtual string GetPrefixOfNamespace (string namespaceURI)

Parameters

namespaceURI
A namespace URI. [Edit]

Returns

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

Remarks

The attributes of this node and its ancestors are traversed until an xmlns: attribute is found whose value is namespaceURI. The local name of the 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