getText
public String getText()
-
Returns the text value of this element without recursing through child elements. This method iterates through all
Text
,CDATA
andEntity
nodes that this element contains and appends the text values together. -
-
Returns:
- the textual content of this Element. Child elements are not navigated. This method does not return null;
getTextTrim
public String getTextTrim()
-
DOCUMENT ME!
-
-
Returns:
- the trimmed text value where whitespace is trimmed and normalised into single spaces. This method does not return null.
这样存储到服务器中数据库中的数据肯定和在Tray中数据库中的数据不一样。这个应该是DOM4J不符合习惯用法的地方