NodeLookupPrefix Method

The lookupPrefix() method of the Node interface returns a String containing the prefix for a given namespace URI, if present, and null if not. When multiple prefixes are possible, the first prefix is returned.

Namespace: Aspose.Html.Dom
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 22.1
public string LookupPrefix(
	string namespaceURI


Type: SystemString

A string containing the namespace to look the prefix up.

Return Value

Type: String

A String containing the corresponding prefix, or null if none has been found. If namespace is null, or the the empty string, lookupPrefix() returns null.

If the node is a DocumentType or a DocumentFragment, lookupPrefix() always returns null.

See Also