[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [eclipselink-users] [MOXy] xml choice object mapping incompatible with preserve document option?
- From: Matt MacIvor <matt.macivor@xxxxxxxxxx>
- Date: Tue, 05 Aug 2008 10:13:05 -0400
- Delivered-to: email@example.com
- User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
This is a known issue with the choice mappings. Currently the document
preservation functionality is dependent (at least for marshalling) on
the DOMPlatform, and the choice mappings aren't currently supported with
the DOM platform. There's a bug tracking this issue already which you
can view here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=223907
I am trying to use XML Choice Mapping to map a hierarchy of objects. I find
that when I turn on the "preserve document" option, this mapping fails. As
soon as I turn off the "preserve document" option, this mapping works fine.
Is this a bug or are they incompatible for some reason? Or is it because of
the XML Any Collection Mapping that is also under the same element that is
Here is my XML for configuring the choice mapping. Please let me know if
it's wrong, because the workbench does not generate this kind of mapping, so
I figured out the format by browsing the source code and hacking the mapping
until it worked.
<xml-field name="DataArea/A" xsi:type="node" />
<xml-field name="DataArea/B" xsi:type="node" />
<xml-field name="DataArea/C" xsi:type="node" />
Here's the any collection:
<field name="DataArea/" xsi:type="node"/>
Any insight would be greatly appreciated!