[jdom-interest] bug in Element.getCopy ?
Jason Hunter
jhunter at collab.net
Thu Mar 1 18:11:22 PST 2001
Jochen Strunk wrote:
>
> I think applying a default namespace to an element should also apply that
> namespace to every child element with no namespace.
> This does not work because in that case jdom seems to not properly separate
> between the empty namespace and no namespace.
The name and namespace uniquely identify an element and are intrinsic to
that element. Changing names or namespaces on a parent element should
not change names or namespaces of children.
There's a little debate on whether you should be able to change an
element name or namespace "in place" without the copy, but it would
break the whole namespace model if parent namespace changes affected
child namespaces.
-jh-
More information about the jdom-interest
mailing list