IXMLDOMCharacterData
Provides text manipulation methods that are used by several objects.
[Script]
Example
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.4.0");
var nodeDescription;
xmlDoc.async = false;
xmlDoc.setProperty("SelectionLanguage", "XPath");
xmlDoc.load("books.xml");
nodeDescription = xmlDoc.selectSingleNode("//description");
alert(nodeDescription.text);
[Visual Basic]
Example
Dim xmlDoc As New Msxml2.DOMDocument40
Dim nodeDescription As IXMLDOMElement
xmlDoc.async = False
xmlDoc.setProperty "SelectionLanguage", "XPath"
xmlDoc.Load "books.xml"
Set nodeDescription = xmlDoc.selectSingleNode("//description")
MsgBox nodeDescription.Text
Remarks
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.
Requirements
Implementation: msxml4.dll, msxml2.lib
[C/C++]
Header and IDL files: msxml2.h, msxml2.idl
To view reference information for Visual Basic, C/C++, or Script only, click the Language Filter button
in the upper-left corner of the page.
See Also
IXMLDOMCDATASection | IXMLDOMCharacterData Members | IXMLDOMComment | IXMLDOMElement | IXMLDOMText