tribble.xml
Interface XmlCommentI

All Superinterfaces:
XmlItemI

public interface XmlCommentI
extends XmlItemI

XML comment.

Contains the textual contents of an XML comment.

Example

The following XML document:

    <!-- Generated: 2003-05-13 21:36 Z -->
    <item
      Count="20" SKU="HG-52814(J)-F" Unit-Cost="149.95">
      <!--
      ! Table: 'INV03'
      ! Query: SKU='HG-52814(J)-F'
      !-->
      Oak business desk with <![CDATA[cherry & chrome]]> finish
    </item> 

contains two comments:

    comment " Generated: 2003-05-13 21:36 Z "
    comment "\n! Table: 'INV03'\n! Query: SKU='HG-52814(J)-F'\n" 

Since:
2003-05-13
Version:
$Revision: 1.1 $ $Date: 2003/05/14 02:42:35 $
Author:
David R. Tribble (david@tribble.com).
Copyright ©2003 by David R. Tribble, all rights reserved.
Permission is granted to freely use and distribute this source code provided that the original copyright and authorship notices remain intact.

Field Summary
static java.lang.String REV
          Revision information.
 
Fields inherited from interface tribble.xml.XmlItemI
TYPE_ATTRIBUTE, TYPE_COMMENT, TYPE_DIRECTIVE, TYPE_ELEMENT, TYPE_TEXT, TYPE_UNKNOWN
 
Method Summary
 java.lang.String getText()
          Retrieve the textual content of this XML comment.
 
Methods inherited from interface tribble.xml.XmlItemI
getColumnNumber, getLineNumber, getParentElement, getType
 

Field Detail

REV

public static final java.lang.String REV
Revision information.

See Also:
Constant Field Values
Method Detail

getText

public java.lang.String getText()
Retrieve the textual content of this XML comment.

Returns:
Text contents of this XML comment, which can be empty ("").
Since:
1.1, 2003-05-13