Click to return to the XML (Extensible Markup Language) home page    
IXMLDOMNode::parsed Prope...     IXMLDOMNode::previousSibl...     IXMLDOMNode Interface    
Web Workshop  |  XML (Extensible Markup Language)

IXMLDOMNode::get_prefix Method


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.

 



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.