Hi Olivier,

> - In my XML schema I have more fields than in my object (see 
> the "reservation" object and xml schema for details). Can I 
> specify in the mapping file that I want castor to create 
> those fields during the marshalling process ?

The XML you copied below is not an XML Schema but simply an XML message.
Moreover the XML schema namespace is wrong.
I guess that what you are trying to do is to use XML Schema datatypes.
>From your example it seems that you only use 'xsd:string' which can be
seen as the default type when binding to Java so I would recommend
removing those 'xsi:type="xsd:string"'.

If you know the XML structure you want to process then I would recommend
writing an XML Schema representing that structure and use the Source
Generator to generate the Java structure for you. That way you won't
lose XML information.

> - when an object field is set to Null, marshalling doesn't 
> create the a corresponding empty tag. Can I ask marshaller to 
> create an empty tag with the right name ?

An empty tag means the element is present then the java representation
for
<resRaison/> that is the same as <resRaison></resRaison>

Is resRaison = "";

I hope this helps,

Arnaud

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to