Represents the content of an XML comment.
The content refers to all characters between the starting <!-- and ending --> tags.
This object has no unique properties or methods of its own, but exposes the same objects and properties as the XMLDOMCharacterData object.
The following VBScript example creates a new XMLDOMComment object (comment) and appends it as the last child node of the DOMDocument object:
Dim xmlDoc
Dim root
Dim comment
Set xmlDoc = CreateObject("Msxml2.DOMDocument")
xmlDoc.async = False
xmlDoc.load("c:\books.xml")
Set root = xmlDoc.documentElement
Set comment = xmlDoc.createComment("Hello World!")
root.appendChild comment
MsgBox (root.xml)
Properties, Methods, and Events