gnu.xml.dom
public class DomComment extends DomCharacterData implements Comment
"Comment" implementation. Comments hold data intended for direct consumption by people; programs should only use ProcessingInstruction nodes. Note that since SAX makes comment reporting optional, XML systems that rely on comments (such as by using this class) will often lose those comments at some point in the processing pipeline.
Version: $Date: 2001/11/20 04:53:46 $
Constructor Summary | |
---|---|
protected | DomComment(Document owner, String value)
Constructs a comment node associated with the specified
document and holding the specified data.
|
Method Summary | |
---|---|
String | getNodeName()
DOM L1
Returns the string "#comment". |
short | getNodeType()
DOM L1
Returns the constant COMMENT_NODE. |
This constructor should only be invoked by a Document as part of its createComment functionality, or through a subclass which is similarly used in a "Sub-DOM" style layer.
Source code is under GPL (with library exception) in the JAXP project at http://www.gnu.org/software/classpathx/jaxp
This documentation was derived from that source code on 2011-08-26.