Georg Federmann wrote:
> Hi Werner,
> 
> yes, I'd like to do so. I'll elaborate the sample domain classes over the
> weekend. 
Appreciated.

>where/how can I turn the how-to document in?
First off, can you please have a look at

http://svn.castor.codehaus.org/browse/castor/castor/trunk/src/xml-howto

where you will find all existing HOW-To document sources. Pick any, and
start amending it toy our needs. It's a pretty obvious (and very
simplistic) XML format that's being used, so things should not be too
hard. If you have got questions, let us know.

If you want to compile the HTML from this file, let us know as well. All
you need to do is checkout trunk from SVN and issue one or two commands.

Regards
Werner

> 
> best regards, Georg
> 
> Georg,
>> how about writing up a new HOW-To document that explains the use of the
>> container attribute based upon your sample domain classes,and hosws what
>> would be (un)marshalled with and without use of that attribute ?
>>
>> Werner
>>
>> Werner Guttmann wrote:
>>> Georg,
>>>
>>> the following mapping does the trick (for me).
>>>
>>> <mapping>
>>>    <class name="xml.georg2.Data">
>>>       <map-to xml="data" />
>>>       <field name="data" type="xml.georg2.A" collection="array">
>>>          <bind-xml name="a" node="element" />
>>>       </field>
>>>    </class>
>>>    <class name="xml.georg2.A">
>>>       <field name="field" type="xml.georg2.B" container="true"
>>> collection="array">
>>>          <bind-xml name="value" node="element" />
>>>       </field>
>>>       <field name="id" type="xml.georg2.C" container="true">
>>>          <bind-xml name="c" />
>>>       </field>
>>>    </class>
>>>    <class name="xml.georg2.B">
>>>       <field name="value" type="integer" />
>>>    </class>
>>>    <class name="xml.georg2.C">
>>>       <field name="id" type="java.lang.String">
>>>          <bind-xml name="id" node="attribute"/>
>>>       </field>
>>>       <field name="name" type="java.lang.String">
>>>          <bind-xml name="name" node="attribute"/>
>>>       </field>
>>>    </class>
>>> </mapping>
>>>
>>> Regards
>>> Werner
>>>
>>
> 

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

    http://xircles.codehaus.org/manage_email


Reply via email to