
• hasChildNodes() returns true if the node has children; false other-
wise.
CharacterData
CharacterData defines the following methods. These methods are inherited
by Text, Comment, and CDATASection:
• appendData(data) appends data at the end of the text.
• insertData(offset,data) inserts data in the current text starting at
offset.
• deleteData(offset,length) deletes length characters starting at
offset.
•
replaceData(offset,length,data) inserts data in place of the charac-
ters at offset for a length.
• substringData(offset,length) returns the characters starting at
offset for a length.
Element
Element has the following methods for manipulating the XML ...