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