[jdom-interest] [Vote] NoSuchChildException

Randall Parker randall at nls.net
Wed Jul 12 20:24:24 PDT 2000


Do you oppose the use of default values within the DTD itself?

On Wed, 12 Jul 2000 19:22:26 -0400, Elliotte Rusty Harold wrote:

>>Excellent reasoning! So since we all know people are going to be enraged
>>by this ;-), do you also feel we should not provide:
>>
>>public Element getChild(String name, Element defaultValue);
>>
>
>I hadn't thought of that method that way. I was thinking that people 
>would provide the defaultValue as something they could use if there 
>was no child, not as a simple error flag. But if it's just an error 
>flag, then yes, I would say we shouldn't provide that method.





More information about the jdom-interest mailing list