Hi,
 
I have this mapping
 
<mapping name="Meta" class="sync4j.framework.core.Meta" ordered="false">
    <value name="Format"  field="format" usage="optional"/>
    <value name="Type"     field="type"   usage="optional"/>
</mapping>
 
How can I add namespace declaration to get the following result when I marshalling?
 
<Meta>
    <Format xmlns="syncml:metinf">format</Format>
    <Type    xmlns="syncml:metinf">type</Type>
</Meta>
 
 
If I write
 
<mapping name="Meta" class="sync4j.framework.core.Meta" ordered="false">
    <namespace uri="syncml:metinf" default="elements" />
 
    <value name="Format"  field="format" usage="optional"/>
    <value name="Type"     field="type"   usage="optional"/>
</mapping>
 
then I get this result that is not correct for me
 
<Meta xmlns="syncml:metinf">
    <Format>format</Format>
    <Type>type</Type>
</Meta>
 
 
Thanks in advanced
Bye Luigia

Reply via email to