XML DOM » Node » parsed

Compability: Internet Explorer

Syntax:
node.parsed

This property 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.

Examples

Code:
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
Explanation:

In this example, 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.

Language(s): VBScript