Click to return to the XML (Extensible Markup Language) home page    
XMLDOMCharacterData inser...     XMLDOMCharacterData repla...     XMLDOMCharacterData Objec...    
Web Workshop  |  XML (Extensible Markup Language)

length Property


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

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
XMLDOMCDATASection, XMLDOMCharacterData, XMLDOMComment, XMLDOMText


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.