|
Given an element's or attribute's globally unique name ( uri and local name ), this function returns its fully qualified name as per the XML document being written, or the unqualified name if the uri is the default namespace. This is done by searching for the current namespace declaration that references the uri.
- Remarks:
- If a matching default namespace declaration ( "xmlns=<uri>" ) was found and the name is for an element then the localName is returned.
- Note:
- According to the XML 1.0 specification, default namespaces do not apply to attribute names, so the default namespace is ignored when the given name is not for an element.
Otherwise, if a matching namespace declaration was found then "[namespace]:[localName]" is returned.
Otherwise, L"" is returned (unable to determine qualified name).
- Parameters:
-
| uri | Input the URI corresponding to an element. |
| uri | Input the local name corresponding to an element. |
| isElement | Input a boolean flag indicating that the URI corresponds to an element. |
- Returns:
- Returns the fully qualified name corresponding to the uri.
|