I'm having some trouble successfully marshalling using the Marshaller.JAXB_FRAGMENT property. Here's a simple version of the XML i'm trying to output.
<Import>
<WorkSets>
<WorkSet>
<Work>
<Work>
...
..
...
</WorkSet>
<WorkSet>
<Work>
<Work>
...
</WorkSet>
<WorkSets>
<Import>
The <Import>
and <WorkSets>
elements are essentially just container elements that enclose a large number of <WorkSet>
& <Work>
elements. I'm currently trying to marshall at the <WorkSet>
.
- Is it possible to initially marshal the
<Import>
and<WorkSets>
elements and then from then on marshal at the<WorkSet>
element and have the output be enclosed in the<Import><WorkSets>
tags? - When I'm marshaling at the WorkSet level it attaches the
xmlns='http://namespace.com'
attribute to the WorkSet tag, is there a way to marshal without the namespace attribute being attached to Workset?