Node.LookupNamespaceURI

Node.LookupNamespaceURI method

The lookupNamespaceURI() method of the Node interface takes a prefix as parameter and returns the namespace URI associated with it on the given node if found (and null if not).

public string LookupNamespaceURI(string prefix)
ParameterTypeDescription
prefixStringThe prefix to look for.

Return Value

A String containing the namespace URI corresponding to the prefix. If the prefix is not found, it returns null. If the requested prefix is null, it returns the default namespace URI.

See Also