次の方法で共有


prefix Property1

 

Returns the namespace prefix.

Script Syntax

strValue = oXMLDOMNode.prefix;  

Visual Basic Syntax

strValue = oXMLDOMNode.prefix  

C/C++ Syntax

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.

Remarks

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).

Versioning

Implemented in:

MSXML 3.0, MSXML 6.0

Applies to

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