Microsoft XML SDK 2.6 - XML Reference

IXMLDOMNode::specified Method

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; False if the attribute value comes from the 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 method.

NODE_ATTRIBUTE Returns True if the attribute is 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.

See Also

IXMLDOMNode Interface