Share via


specified Property (Windows Embedded CE 6.0)

1/6/2010

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

Script Syntax

            boolValue = oXMLDOMNode.specified;

Remarks

Ee502037.collapse(en-US,WinEmbedded.60).gifScript Parameters

None.

Ee502037.collapse(en-US,WinEmbedded.60).gifScript Return Value

Boolean. Returns True if the attribute is explicitly specified in the element. Returns False if the attribute value comes from the DTD or schema.

Ee502037.collapse(en-US,WinEmbedded.60).gifC/C++ Syntax

HRESULT get_specified(
  VARIANT_BOOL* isSpecified
);

Remarks

Ee502037.collapse(en-US,WinEmbedded.60).gifC/C++ Parameters

  • isSpecified
    [out, retval] True if the attribute is explicitly specified in the element; False if the attribute value comes from the DTD or schema.

Ee502037.collapse(en-US,WinEmbedded.60).gifC/C++ Return Values

  • S_OK
    Value returned if successful.
  • E_INVALIDARG
    Value returned if isSpecified is Null.

Ee502037.collapse(en-US,WinEmbedded.60).gifRequirements

Header msxml2.h, msxml2.idl
Windows Embedded CE Windows CE .NET 4.0 and later

General Remarks

This value depends on the value of the nodeType property.

Value Description

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.

This member is an extension of the World Wide Web Consortium (W3C) Document Object Model (DOM).

This property is read-only, and applies to the following objects and interfaces:

IXMLDOMAttribute, IXMLDOMCDATASection, IXMLDOMCharacterData, IXMLDOMComment, DOMDocument, IXMLDOMDocumentFragment, IXMLDOMDocumentType, IXMLDOMElement, IXMLDOMEntity, IXMLDOMEntityReference, IXMLDOMNode, IXMLDOMNotation, IXMLDOMProcessingInstruction, IXMLDOMText, and IXTLRuntime

See Also

Reference

XML DOM Properties

Concepts

nodeType Property