getPrefixes Method
Returns a collection of namespace prefixes bound to the specified URI.
JScript Syntax
var objNSPrefixCol = obnNSManager.getPrefixes
(namespaceURI)
Parameters
namespaceURI
A string. The namespace URI bound to the prefix.
Return Values
An object. Returns the collection of prefixes.
Example
See the declarePrefix example for an example of this method.
C/C++ Syntax
HRESULT getPrefixes(
BSTR namespaceURI,
IMXNamespacePrefixes** prefixes);
Parameters
namespaceURI[in]
The namespace URI.
prefixes[out, retval]
The prefixes collection.
Return Values
S_OK
The value returned if successful.
E_POINTER
The value returned if the last parameter is NULL
E_INVALIDARG
The value returned if the namespaceURI
argument is an empty string. A prefix cannot be bound to an empty string.
E_OUTOFMEMORY
The value returned if there is no memory for IMXNamespacePrefixes
.
Remarks
When there are no prefixes bound to the specified namespace URI, the returned collection of prefixes contains no items.
Versioning
Implemented in: MSXML 6.0