- prefix
- The prefix whose namespace URI you want to resolve. To match the default namespace, pass string.Empty.
A string that contains the namespace URI assigned to the namespace prefix specified; null if no namespace URI is assigned to the prefix specified. The string returned is atomized.
If string.Empty is specified as the prefix parameter, the currently assigned default namespace URI is returned. If no default namespace URI is explicitly assigned, and string.Empty is specified as the prefix parameter, the blank prefix is associated with elements that are not in any namespace, and string.Empty is returned.
The prefix to namespace URI mappings can change from node to node in an XML document. As a result, the value of the XPathNavigator.LookupNamespace(string) method may not be consistent from one node to the next.