[jdom-interest] Re: setAttribute???

Mike Jennings mjenning at islandnet.com
Sun Jan 14 09:05:49 PST 2001

I like it.

----- Original Message -----
From: "Dave Churchville" <dmc at chimerasoft.com>
To: <jdom-interest at jdom.org>
Sent: Saturday, January 13, 2001 4:02 PM
Subject: [jdom-interest] Re: setAttribute???

> Is there any reason why JDOM doesn't have a setAttribute( String name,
> String value) method?
> addAttribute is fine when constructing new documents from scratch, but
> if you are reading a document and want to modify a value, you currently
> have to say "getAttribute, if not null, then set the Attribute value.
> If null, call addAttribute".
> Admittedly, its not that hard, but setAttribute that would set the value
> of the "Attribute" object if it exists, else create one and set it,
> would be nice to have, and consistent with "setText" on Element.
> Thoughts?
> --Dave
> _______________________________________________
> To control your jdom-interest membership:

More information about the jdom-interest mailing list