XML DOM - Objek Komentar
Cobalah Sendiri - Contoh
Contoh di bawah ini menggunakan file XML books.xml .
Objek Komentar
Objek Comment merepresentasikan isi dari node komentar dalam sebuah dokumen.
Properti Objek Komentar
Property | Description |
---|---|
data | Sets or returns the text of this node |
length | Returns the length of the text of this node |
Metode Objek Komentar
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 |