[jdom-interest] First pass at Namespace revision[eg]

Ken Rune Helland kenh at csc.no
Fri Mar 30 00:02:45 PST 2001

At 10:12 PM 3/29/2001 -0800, Jason Hunter wrote:
> > As I understand this happens because in your namespace model a child's
> > namspace should not be affected by its location in the document. So the
> > next step to achieve the wanted result would be traversing all child
> > elements of element and assigning them the foo namespace. Its obvious that
> > I do not want to use getCopy for this task since it would unnecessarily do
> > a deep copy. I would need to implement my own copy method which gives me
> > the same element in the foo namespace.
> >
> > This is not very straightforward any more :-(
>I'm sympathetic that we may want a setName() and setNamespace() pair of
>methods to make it easier to modify all aspects of the doc
>programatically.  I talked with Elliotte at the O'Reilly conference this
>afternoon and he's not convinced yet.  What we need is a compelling
>example where it's appropriate to change the namespace of all elts in a
>document programatically.  If we have that, I think Elliotte our
>strongest naysayer will be convinced.  So...  What's your use case?

I don't have a distinct usecase, but to me this feels like someting a
general purpose XML api shoud let you do.


More information about the jdom-interest mailing list