DOM
Expand Minimize

prefix Property

Returns the namespace prefix.

strValue = oXMLDOMNode.prefix;

strValue = oXMLDOMNode.prefix

HRESULT get_prefix(
    BSTR *prefixString);

Parameters

prefixString[out, retval]

The 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

The value returned if successful.

S_FALSE

The value returned when there is no prefix.

E_INVALIDARG

The value returned if the prefixString parameter is Null.

String. The property is read-only. It returns the namespace prefix specified. For example, for the element <xxx:yyy>, it returns "xxx". It returns an empty string, "", if no prefix is specified.

This member is an extension of the World Wide Web Consortium (W3C) Document Object Model (DOM).

Implemented in:

MSXML 3.0, MSXML 6.0

Show:
© 2014 Microsoft