Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT
  Features
      Ask DevGuru
      ASP Resources
      HTML Color Chart
      Find the Bug
      Knowledge Base
      Links
      Tips of the Week
      T-SQL Syntax Charts
      Tutorials
  Products
      dgCalendar
      dgCharge
      dgChart
      dgEncrypt
      dgFileUpload
      dgReport
      dgSort
      dgTree
  Site
      Authoring
      Coming Soon
      DevGuru Resume
      Errata
      Link to Us
      Merchandise
      Sponsorships
      Testimonials
      What's New
  Partners
      Code Project
      DevelopersDex
      Prog. Heaven
      Tek-Tips Forum
      TopXML
      VBXML.COM
      VisualBuilder.com
      W3Schools
      XMLPitstop
      ZVON.org
      Search Us!

       











PROPERTY:  Object::dataType

This property is a Microsoft extension to the W3C DOM.

Object  Attr   CDATASection   CharacterData   Comment   Document   DocumentFragment   DocumentType   Entity   EntityReference   Node   Notation   ProcessingInstruction   Text
 
Object.dataType

The dataType property is a read-only property of type variant that specifies the data type for the node. This can be a string containing the data type name, if declared, for valid nodes types, or null where no data type was declared or the node type is invalid. Ultimately, it depends on the value of the nodeType property of the Node object. Valid data types are:

  • NODE_ATTRIBUTE
  • NODE_ELEMENT
  • NODE_ENTITY_REFERENCE

Data types for an element can be specified in a schema for an XML document. The following example gets the data type of the first child node of the root element and displays it (in this case null as the data type has not been declared).

Code (VBScript):
Set objXMLDoc = CreateObject("Microsoft.XMLDOM")
objXMLDoc.async = False
objXMLDoc.load("states.xml")

Dim strDataType
strDataType = objXMLDoc.documentElement.childNodes.item(0).dataType

Output:
null





Copyright 1999-2002 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information