All Packages Class Hierarchy This Package Previous Next Index
Class w3c.xmlOnline.tree.Comment
java.lang.Object
|
+----w3c.xmlOnline.tree.Node
|
+----w3c.xmlOnline.tree.Comment
- public class Comment
- extends Node
A class that represents a comment node in an XML tree. The
comment is a single string, excluding the delimiters
<!-- and -->.
- Version:
- $Id: w3c.xmlOnline.tree.Comment.html,v 1.7 1997/06/09 22:25:36 bbos Exp $
- Author:
- Bert Bos
-
Comment(Node, String, int)
- Create a new XML Comment node, given a comment string.
-
data()
- Return the comment string.
-
dumpTree(PrintStream)
- A method to write out the content of
the node in correct XML synyax: <!--...-->
Comment
public Comment(Node parent,
String s,
int nr)
- Create a new XML Comment node, given a comment string.
- Parameters:
- parent - the parent of the node
- s - the comment text
- nr - the sequence number of the node in the tree
- Returns:
- the new Comment node
data
public String data()
- Return the comment string.
- Returns:
- the comment string
dumpTree
public void dumpTree(PrintStream out)
- A method to write out the content of
the node in correct XML synyax: <!--...-->
- Parameters:
- out - the PrintStream to write on
- Overrides:
- dumpTree in class Node
All Packages Class Hierarchy This Package Previous Next Index