IXMLDOMCharacterData

Provides text manipulation methods that are used by several objects.

var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.6.0");
var nodeDescription;
xmlDoc.async = false;
xmlDoc.setProperty("SelectionLanguage", "XPath");
xmlDoc.load("books.xml");
if (xmlDoc.parseError.errorCode != 0) {
   var myErr = xmlDoc.parseError;
   WScript.Echo("You have error " + myErr.reason);
} else {
   nodeDescription = xmlDoc.selectSingleNode("//description");
   WScript.Echo(nodeDescription.text);
}


IXMLDOMCharacterData does not directly correspond to any node type. Methods are reused by IXMLDOMCDATASection, IXMLDOMComment, and IXMLDOMText. These methods handle large amounts of text, including sizes larger than can be manipulated natively using string constructs.

Implementation:

msxml3.dll, msxml2.lib (MSXML 3.0)

msxml6.dll, msxml6.lib (MSXML 6.0)

Header and IDL files (C/C++): msxml2.h, msxml2.idl, msxml6.h, msxml6.idl

Implemented in: MSXML 3.0, MSXML 6.0

Show:
© 2015 Microsoft