TokenProcessingState.lookupNamespaceUri

string lookupNamespaceUri(string prefix) const @safe nothrow

Looks up a namespace URI for the given prefix.

Well-known prefixes are resolved without consulting the stack:

  • "xml""http://www.w3.org/XML/1998/namespace"
  • "xmlns""http://www.w3.org/2000/xmlns/"

Parameters

prefixNamespace prefix. Empty string denotes the default namespace.

Returns

The resolved URI, or an empty string if the prefix is undeclared.