[jdom-interest] Text

Kesav Kumar kesavk at voquette.com
Mon Apr 30 14:01:30 PDT 2001

Use getTextTrim() which eleminates all the whitespaces.

Kesav Kumar
Software Engineer
Voquette, Inc.
650 356 3740
mailto:kesavk at voquette.com
Voquette...Delivering Sound Information

-----Original Message-----
From: Noam Tamim [mailto:noamt at yahoo.com]
Sent: Monday, April 30, 2001 5:51 AM
To: jdom-interest at jdom.org
Subject: [jdom-interest] Text


In org.w3c.dom, we have Text nodes. What replaces that in JDOM?
Element.getText() is not exactly the same: for elements that contain other
elements, the getText() method returns a long string of whitespace
characters, which is usually not what you want.

 - Noam.

To control your jdom-interest membership:

More information about the jdom-interest mailing list