Name
Comment
Synopsis
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( )
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.