Specifies the length, in characters, of the data.
lValue = oXMLDOMCharacterData.length
Long integer. The property is read-only. It specifies the length, in Unicode characters, of the string present in the data property.
The following VBScript example creates an XMLDOMComment object and then assigns the length property to a variable:
Dim xmlDoc Dim comment Dim lValue Set xmlDoc = CreateObject("Msxml2.DOMDocument") xmlDoc.async = False xmlDoc.load("c:\books.xml") Set comment = xmlDoc.createComment("Hello World!") lValue = comment.length MsgBox lValue
Applies To: XMLDOMCDATASection Object | XMLDOMCharacterData Object | XMLDOMComment Object | XMLDOMText Object