Community
Participate
Working Groups
When marshalling a QName, if the QName has "" or null for a namespace, the local name is written out as the value without a prefix. This works in most cases, however, if there's a default namespace declared somewhere above in the document, then the value will be incorrect. EclipseLink needs to cancel out the previous default namespace declaration in the scope of this element by adding xmlns="".
Created attachment 187561 [details] Proposed Fix
Attached path checked in to SVN Reviewed by David McCann
Reopening to track an additional problem. If there's a default namespace declared already in the document, and the owning element is in that namespace (non-prefixed), then adding the xmlns="" will break the namespace of that element. If this situation arises, the element will have to have a prefix generated for it's namespace so that the xmlns="" can still be added to handle the namespace of the qname value.
Created attachment 189323 [details] Proposed Fix and Tests
Updated patch checked in to SVN Reviewed by Blaise Doughan
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink