Skip to content

LookupNamespaceURI

Returns the namespace URI associated with the specified prefix.

1
myXml.LookupNamespaceURI(prefix: string):string

Parameters

string prefix
    Prefix to look up.

Returns

The namespace URI associated with the prefix, or null if the prefix is not found.

Examples

Look up a registered namespace

1
2
$Xml.AddNamespace('tmp', 'http://tempuri.org/');
var uri = $Xml.LookupNamespaceURI('tmp');                 // 'http://tempuri.org/'