Easy Tutorial
❮ Dom Parser Dom Met Element Removeattributenode ❯

XML DOM appendData() Method



Definition and Usage

The appendData() method adds a string to the end of a text node.

Syntax

Parameter Description
string Required. The string to add to the text node.

Example

The following code snippet uses loadXMLDoc() to load "books.xml" into xmlDoc and appends text to the first <title> element:

Example

Output:


❮ Dom Parser Dom Met Element Removeattributenode ❯