XML DOM - Het commentaarobject
Probeer het zelf - Voorbeelden
De onderstaande voorbeelden gebruiken het XML-bestand books.xml .
Het object Opmerking
Het object Opmerking vertegenwoordigt de inhoud van opmerkingsknooppunten in een document.
Eigenschappen van commentaarobject
Property | Description |
---|---|
data | Sets or returns the text of this node |
length | Returns the length of the text of this node |
Commentaar Object Methoden
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 |