[jdom-interest] getText() and getAttributeValue()

philip.nelson at omniresources.com philip.nelson at omniresources.com
Thu Feb 14 09:49:29 PST 2002

>I daresay that any method of and kind should only return null if that
>represents a legitimate working state of the system the method's class
>is encapsulating -- never to represent an error, and never when String is
>the return type.

And those of us that think null is the appropriate response feel that
returning "" on a non exsistent attribute is masking knowledge of what the
xml actually contains.  You can make excellent application specific
arguments about this issue, but not at the level JDOM sits.

More information about the jdom-interest mailing list