एक्सएमएल डोम - टिप्पणी वस्तु
इसे स्वयं आज़माएं - उदाहरण
नीचे दिए गए उदाहरण XML फ़ाइल Books.xml का उपयोग करते हैं ।
टिप्पणी वस्तु
टिप्पणी वस्तु किसी दस्तावेज़ में टिप्पणी नोड्स की सामग्री का प्रतिनिधित्व करती है।
टिप्पणी वस्तु गुण
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 |