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

appendData Method


Appends the supplied string to the existing string data.

Syntax

oXMLDOMCharacterData.appendData(data)

Parameters

data
String containing the data that is to be appended to the existing string.

Remarks

The length property is also updated by this operation.

Example

The following example creates an XMLDOMComment object and uses the appendData method to add text to the string:

Dim xmlDoc
Dim comment

Set xmlDoc = CreateObject("microsoft.xmldom")
xmlDoc.async = False
xmlDoc.load("c:\books.xml")
Set comment = xmlDoc.createComment("Hello World!")
comment.appendData (" Ellohay Orldway!")
MsgBox (comment.data)

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.