[jdom-interest] detach() [eg]
jhunter at collab.net
Sun Apr 29 18:00:56 PDT 2001
> Agreed. I'm not saying that removeContent() solves the Document/root element
> problem, or the ISE issue.
Those are the big pressing issues. Now we're just arguing style.
> That's secondary to me at this point. I am
> saying, though, that I think detach() on an Element would make me think it
> detaches an element from the object detach() is being invoked on.
Luckily detach() takes no parameters so if that's your inclination (note
it's not my inclination) then you'll have to realize it doesn't work
> than detach(), which feels like a backwards set of semantics to me. Maybe
> I've just not hit the use-case that makes me flip my perspective. I wish I
> would so I could see your side better ;-)
I need a simple answer to "How do I move an element". Having a detach()
makes it easy. Without detach() it's a royal pain.
If you don't like it, you can always ignore it. But I bet you'll use
More information about the jdom-interest