Microsoft XML 2.5 SDK


 

IXMLDOMNode::get_prefix Method

[This is preliminary documentation and subject to change.]

Returns the namespace prefix.

Visual Basic Syntax

strValue = oXMLDOMNode.prefix

C/C++ Syntax

HRESULT get_prefix(

    BSTR *prefixString);

Parameters

prefixString

[out]
Namespace prefix specified on the element, attribute, or entity reference. For example, for the element <xxx:yyy>, it returns xxx. It returns an empty string, "", if no prefix is specified.

C/C++ Return Values

S_OK

Value returned if successful.

S_FALSE

Value when returning null.

E_INVALIDARG

Value returned if prefixString is null.