Community
Participate
Working Groups
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.
Created attachment 201169 [details] Proposed fix and tests
Attached patch checked into 2.3.1 and Trunk streams in SVN
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink