[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
http://www.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


Hi.

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:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com



More information about the jdom-interest mailing list