Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354257

Summary: Issue with namespace declarations with XmlAnyElement
Product: z_Archived Reporter: Matt MacIvor <matt.macivor>
Component: EclipselinkAssignee: Matt MacIvor <matt.macivor>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix and tests none

Description Matt MacIvor CLA 2011-08-09 10:22:16 EDT
When keeping a node as an org.w3c.dom.Element as part of an XmlAnyElement namespaces can be lost if the SAX parser doesn't have the namespacedeclarations feature set. 

This feature causes namespace declarations to be passed into the ContentHandler as Attributes. When this isn't set, the namespaces are only reported through the startPrefixMapping events. The startPrefixMapping events however, aren't called on the SAXFragmentBuilder for the root element of the fragment, so the namespace declarations are lost.
Comment 1 Matt MacIvor CLA 2011-08-09 15:01:32 EDT
Created attachment 201169 [details]
Proposed fix and tests
Comment 2 Matt MacIvor CLA 2011-08-10 11:24:37 EDT
Attached patch checked into 2.3.1 and Trunk streams in SVN
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:10:00 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:17:12 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink