[jdom-interest] Missing Element.setName

Thomas M. Sasala tsasala at hifusion.com
Mon Jun 26 07:05:33 PDT 2000


	At a minimum, we need an Element rename function.  We just need
to change the name of the root element, to turn the document into
a 'different' data type.

	-Tom



Gabor Greif wrote:
> 
> Now I encountered a situation where call in Element.setName
> would be the best soulution.
> 
> My alternative would be to add a new Element into the parent's contents at
> the appropriate index and remove the old named Element from it.
> 
> This seem to be a rather heavy-weight solution to a simple problem and I
> wonder if ther is a more elegant way to do this?
> 
> Should a Element.setName method be added?
> Why was Element.setName not considered in first place?
> 
>         Thanks,
> 
>         Gabor
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com



More information about the jdom-interest mailing list