Java in a Nutshell, 5th Edition [Electronic resources]

نسخه متنی -صفحه : 1191/ 1100
نمايش فراداده

Commentorg.w3c.dom

Java 1.4

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( )