Click to return to the XML (Extensible Markup Language) home page    
XMLDOMNode cloneNode Meth...     XMLDOMNode definition Pro...     XMLDOMNode Object    
Web Workshop  |  XML (Extensible Markup Language)

dataType Property


Specifies the data type for this node.

Syntax

objValue = oXMLDOMNode.dataType
objXMLDOMNode.dataType = objValue

Remarks

Variant. The property is read/write. The VARIANT can be a BSTR that contains the data type name, or VT_NULL, if no data type is defined.

This value depends on the value of the XMLDOMNode object's nodeType property.

This member is an extension of the W3C DOM.

NODE_ATTRIBUTE
Contains the string representation of the data type specifier included in the schema, or NULL if no data type was specified.
NODE_CDATA_SECTION,
NODE_COMMENT,
NODE_DOCUMENT,
NODE_DOCUMENT_FRAGMENT,
NODE_DOCUMENT_TYPE,
NODE_ENTITY,
NODE_NOTATION,
NODE_PROCESSING_INSTRUCTION,
NODE_TEXT
Contains the constant string value "string." These node types do not have data types, so the dataType property cannot be set for these node types. Attempts to set this property are ignored.
NODE_ELEMENT
Contains the string representation of the data type specifier included on the instance of the element or in the schema, or NULL if no data type was specified.
NODE_ENTITY_REFERENCE
Contains the string representation of the data type specifier for the referenced entity. This is limited to entities with a single data type on the root level element of the subtree corresponding to the entity. Contains NULL if no data type was specified. It is not possible to set the data type of an entity reference. The data type must be set directly on the referenced element. Attempts to set the value of the dataType property are ignored.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
XMLDOMAttribute, XMLDOMCDATASection, XMLDOMCharacterData, XMLDOMComment, XMLDOMDocument, XMLDOMDocumentFragment, XMLDOMDocumentType, XMLDOMElement, XMLDOMEntity, XMLDOMEntityReference, XMLDOMNode, XMLDOMNotation, XMLDOMProcessingInstruction, XMLDOMText, XTLRuntime


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.