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-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information