The examples below use the XML file books.xml.
An external JavaScript is used to load the XML file.
createComment() - Create a comment node
The Comment object represents the content of comment nodes in a document.
Property | Description |
---|---|
data | Sets or returns the text of this node |
length | Returns the length of the text of this node |
Property | Description |
---|---|
appendData() | Appends data to the node |
deleteData() | Deletes data from the node |
insertData() | Inserts data into the node |
replaceData() | Replaces data in the node |
substringData() | Extracts data from the node |