Replaces the specified number of characters with the supplied string.
oXMLDOMCharacterData.replaceData(offset, count, data)
The following VBScript example creates a new XMLDOMComment object, and then replaces the first five characters with a new string:
Dim xmlDoc
Dim comment
Set xmlDoc = CreateObject("Msxml2.DOMDocument")
xmlDoc.async = False
xmlDoc.load("c:\books.xml")
Set comment = xmlDoc.createComment("Hello World!")
MsgBox comment.xml
comment.replaceData 0,5,"Goodbye, Cruel"
MsgBox comment.xml
Applies To: XMLDOMCDATASection Object | XMLDOMCharacterData Object | XMLDOMComment Object | XMLDOMText Object