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::parsed

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.parsed

The parsed property is read-only and returns a boolean value of true if this node and all of its descendants have been parsed and instantiated. Otherwise it returns false. During asynchronous access, not all of the document tree may be available, and this property allows you to determine whether that is the case before performing such operations as XSL transformations or pattern-matching.

In the example that follows, the code loads the 'staff.xml' file, and gets the parsed property of the root element, displaying an appropriate message depending on the value returned.

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

Set Root = objXMLDoc.documentElement
If Root.parsed Then
   alert("Parsed")
Else
   alert("Not Parsed")
End If

Output:
Parsed





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