prefix Property1

 

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

IXMLDOMAttribute | IXMLDOMCDATASection | IXMLDOMCharacterData | IXMLDOMComment | IXMLDOMDocument-DOMDocument | IXMLDOMDocumentFragment | IXMLDOMDocumentType | IXMLDOMElement | IXMLDOMEntity | IXMLDOMEntityReference | IXMLDOMNode | IXMLDOMNotation | IXMLDOMProcessingInstruction | IXMLDOMText

Show: