DynamicDOM v0.43.2. Implementation based on XRules v0.43

XmlHelpers.LookupPrefix Method 

Similar to XmlNamespaceManager.LookupPrefix(), but returns the non-empty prefix of a namespace even if an empty prefix is available for it.

[Visual Basic]
Shared Public Function LookupPrefix( _ 
   ByVal namespaceManager As XmlNamespaceManager, _ 
   ByVal uri As String _ 
) As String
[C#]
public static string LookupPrefix(
   XmlNamespaceManager namespaceManager,
   string uri
);
[C++]
public: static String* LookupPrefix(
   XmlNamespaceManager* namespaceManager,
   String* uri
);
[JScript]
public static function LookupPrefix(
   XmlNamespaceManager namespaceManager,
   String uri
): String;

Parameters

namespaceManager
The namespace manager in which to search for a prefix.
uri
the namespace URI to lookup a prefix for.

Return Value

A prefix assigned to the specified namespace URI, or an empty string if the namespace URI was not found.

See Also

XmlHelpers Class | XRules.Utilities Namespace