From http://www.w3schools.com (Copyright Refsnes Data)
Complete Document Object Reference
The createTextNode() method creates a text node.
This method returns a Text object.
| createTextNode(text) |
| Parameter | Description |
|---|---|
| text | A string that specifies the text for the node |
The following code fragment loads "books.xml" into xmlDoc using loadXMLDoc() and adds an element node with a containing text node to each <book> element:
Example
Try it yourself » |
Complete Document Object Reference
From http://www.w3schools.com (Copyright Refsnes Data)