Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

parsed Property

Indicates the parsed status of the node and child nodes.

boolValue = oXMLDOMNode.parsed;

Example

The following script example displays whether or not the top-level node (root) and all its descendants are parsed.

var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.3.0");
var root;
xmlDoc.async = true;
xmlDoc.load("books.xml");
if (xmlDoc.parseError.errorCode != 0) {
   var myErr = xmlDoc.parseError;
   WScript.Echo("You have error " + myErr.reason);
} else {
   root = xmlDoc.documentElement;
   WScript.Echo(root.parsed ? "true" : "false");
}


boolValue = oXMLDOMNode.parsed

HRESULT parsed(
    VARIANT_BOOL *isParsed);

Parameters

isParsed[out, retval]

True if this node and all descendants have been parsed; False if any descendants remain to be parsed.

C/C++ Return Values

S_OK

The value returned if successful.

E_INVALIDARG

The value returned if the isParsed parameter is Null.

Boolean. The property is read-only. During asynchronous access, not all of the document tree may be available. Before performing some operations, such as XSLT or pattern-matching operations, it is useful to know whether the entire tree below this node is available for processing.

This member is an extension of the World Wide Web Consortium (W3C) Document Object Model (DOM).

Implemented in:

MSXML 3.0 and MSXML 6.0

Show:
© 2014 Microsoft