tribble.xml
Interface XmlTextI

All Superinterfaces:
XmlItemI

public interface XmlTextI
extends XmlItemI

XML element text content.

Contains the text content, if any, of an XML element (tagged node).

Example

The following XML element:

    <item
      Count="20" SKU="HG-52814(J)-F" Unit-Cost="149.95">
      Oak business desk with <![CDATA[cherry & chrome]]> finish
    </item> 

contains the following text content:

    text "Oak business desk with cherry & chrome finish" 

Since:
2003-04-13
Version:
$Revision: 1.1 $ $Date: 2003/04/13 22:30:26 $
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.
See Also:
XmlElementI

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 text item.
 
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 text item.

Returns:
Text contents of this XML item, or null if the element has no textual contents.
Since:
1.1, 2003-04-13