GetNamespaceOfPrefix()

XmlNode::GetNamespaceOfPrefix(String) method

Looks up the closest xmlns declaration for the given prefix that is in scope for the current node and returns the namespace URI in the declaration.

virtual String System::Xml::XmlNode::GetNamespaceOfPrefix(String prefix)

Arguments

ParameterTypeDescription
prefixStringThe prefix whose namespace URI you want to find.

Return Value

The namespace URI of the specified prefix.

See Also