A Comment node represents a comment in an XML document. The content of the comment (i.e. the text between <!-- and -->) is available with the getdata( ) method inherited from CharacterData, or through the getNodeValue( ) method inherited from Node. This content may be manipulated using the various methods inherited from CharacterData
Figure 21-4. org.w3c.dom.Comment
public interface Comment extends CharacterData { }
Returned By Document.createComment( ) |