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