Hi Angelina,

if you have already existent domain objects you will not need the xsd, instead you have to create a mapping file that tells castor how to map properties of you domain objects to your xml syntax.

On the other hand if you do not have domain objects you can use castor's source generator to create domain objects for you. In that case the source generator also creates descriptor classes that tell castor how to marshal the domain objects into xml that conforms to your xsd. You will not need a mapping file then.

Hope this brings a step forward
Ralf


Angelina Cockrell schrieb:
I am new to xmls/xsd and someone asked me to look at Castor.
We are trying to produce the following:
<transccion>
   <solicitud>
       <campo nombre="COD_REQ"> codeReq </campo>
       <campo nombre="COD_REQ_VU">test</campo>
       <campo nombre="SITUACION">some situation</campo>
       <campo nombre="F_PREV_ENT">20061010031500</campo>
       <campo nombre="ID_AVISO">8100041191</campo>
      </solicitud>
</transccion>
We have an XSD file but am not sure how to specify the xsd file in order to create the xml.
Thanks

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to