Click to return to the XML (Extensible Markup Language) home page    
IXMLDOMNode::selectSingle...     IXMLDOMNode::text Propert...     IXMLDOMNode Interface    
Web Workshop  |  XML (Extensible Markup Language)

IXMLDOMNode::get_specified Method


Indicates whether the node (usually an attribute) is explicitly specified or derived from a default value in the DTD or schema.

Visual Basic Syntax

boolValue = oXMLDOMNode.specified

C/C++ Syntax

HRESULT get_specified(
    VARIANT_BOOL *isSpecified);

Parameters

isSpecified
[out] True if the attribute is explicitly specified in the element. Returns false if the attribute value comes from the document type definition (DTD) or schema.

C/C++ Return Values

S_OK
Value returned if successful.
E_INVALIDARG
Value returned if isSpecified is null.

Remarks

This value depends on the value of the nodeType property.

NODE_ATTRIBUTE
Returns true if the attribute was specified directly on the element. Returns false for default attributes.
NODE_CDATA_SECTION,
NODE_COMMENT,
NODE_DOCUMENT,
NODE_DOCUMENT_FRAGMENT,
NODE_DOCUMENT_TYPE,
NODE_ELEMENT,
NODE_ENTITY,
NODE_ENTITY_REFERENCE,
NODE_NOTATION,
NODE_PROCESSING_INSTRUCTION,
NODE_TEXT
Returns true.


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.