From http://www.w3schools.com (Copyright Refsnes Data)
Complete Document Object Reference
The createElement() method creates an element node.
This method returns an Element object.
| createElement(name) |
| Parameter | Description |
|---|---|
| name | A string that specifies the name for the element 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)