[jdom-interest] Default for getChildText?
Dave Ferguson
dferguson at touchnet.com
Tue Apr 2 07:56:02 PST 2002
I've recently started using JDOM and I love it. Here is a question and possible enhancement request.
I noticed that beta 8 adds a new method to Element to get an attribute value while passing in a default -- getAttributeValue(String name, String def). This is very helpful, but I was amazed to see that the same thing was not done for getChildText() and getChildTextTrim(). I would find it extremely useful to be able to pass a default to those methods as well.
Any reason those methods weren't added?
Thanks,
Dave F.
More information about the jdom-interest
mailing list