Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
Specifies the data type for this node.
Script Syntax
Copy Code | |
---|---|
objValue = oXMLDOMNode.dataType; objXMLDOMNode.dataType = objValue; |
Remarks
Script Parameters
None.
Script Return Value
Variant. The VARIANT can be a BSTR that contains the data type name, or VT_NULL if no data type is defined.
C/C++ Syntax
Copy Code | |
---|---|
HRESULT get_dataType( VARIANT* dataTypeName ); HRESULT put_dataType( BSTR dataTypeName ); |
Remarks
C/C++ Parameters
- dataTypeName
-
[out, retval][in] VARIANT can be a BSTR that contains the data type name, or VT_NULL if no data type is defined.
C/C++ Return Values
- S_OK
-
Value returned if successful.
- S_FALSE (for get_dataType only)
-
Value returned if the node is not typed.
- E_INVALIDARG (for get_dataType only)
-
Value returned if dataTypeNameis Null.
- E_FAIL (for put_dataType only)
-
Value returned if an error occurs.
Requirements
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 nodeTypeproperty of the IXMLDOMNode.
This member is an extension of the World Wide Web Consortium (W3C) Document Object Model (DOM).
Value | Description |
---|---|
NODE_ATTRIBUTE |
Contains the string representation of the data type specifier included in the schema, or Null if no data type is 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 dataTypeproperty 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 is 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 is 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 dataTypeproperty are ignored. |
This property is read/write, and applies to the following objects and interfaces:
IXMLDOMAttribute, IXMLDOMCDATASection, IXMLDOMCharacterData, IXMLDOMComment, DOMDocument, IXMLDOMDocumentFragment, IXMLDOMDocumentType, IXMLDOMElement, IXMLDOMEntity, IXMLDOMEntityReference, IXMLDOMNode, IXMLDOMNotation, IXMLDOMProcessingInstruction, IXMLDOMText, and IXTLRuntime