parsed Property
Indicates the parsed status of the node and child nodes.
Script Syntax
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");
}
Visual Basic Syntax
boolValue = oXMLDOMNode.parsed
C/C++ Syntax
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.
Remarks
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).
Versioning
Implemented in:
MSXML 3.0 and MSXML 6.0
Applies to
IXMLDOMAttribute | IXMLDOMCDATASection | IXMLDOMCharacterData | IXMLDOMComment | IXMLDOMDocument-DOMDocument | IXMLDOMDocumentFragment | IXMLDOMDocumentType | IXMLDOMElement | IXMLDOMEntity | IXMLDOMEntityReference | IXMLDOMNode | IXMLDOMNotation | IXMLDOMProcessingInstruction | IXMLDOMText