Hello,

I'm mapping a class hierarchy with xml files.
The main class has an id member which is mapped as an attribute of the 
node in XML.
My questions stands on the way childrens will be marshalled.

Here is the "pseudo" mapping :

 <mapping name="myElem" class="theExtendingClass" extends="anExtendedClass">
    <structure map-as="theExtendingClass"/>
    <collection field="oneMoreField">
        <structure name="ref">
            <value style="attribute" name="refid" type="java.lang.String"/>
        </structure>
    </collection>
  </mapping>

When marshalling, this will generate the following tree :

<topNode id="01">
    <usualFields></usualFields>
</topNode>
<subnode>
    <topNode id="02">
           <usualFields></usualFields>
    </topNode>
    <ref id="">
    <ref id="">
    <ref id="">
</subNode>

Is there a way to generate childrens "Inline" i.e. getting the following 
tree :

<topNode id="01">
    <usualFields></usualFields>
</topNode>
<subnode id="02">
    <usualFields></usualFields>
    <ref id="">
    <ref id="">
    <ref id="">
</subNode>

Best regards

-- 
Julien Chevalier
[EMAIL PROTECTED]
+0033 243 491 414


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to