The XML that is generated is this:

    <a1>a1</a1>
    <bObject>
        <a2>a2</a2>
    </bObject>
    <bObject>
        <b1>b1</b1>
    </bObject>


As you can see, there are two bObject tags... I want to generate the
following:


    <a1>a1</a1>
    <bObject>
        <a2>a2</a2>
        <b1>b1</b1>
    </bObject>


but, how? I'll continue trying.

Thanks,

Regards



Werner Guttmann wrote:
> 
> What does the XML produced exactly look like ?
> 
> Werner
> 
> sweex wrote:
>> Thanks Werner, I understand. But, I don't get what I want. I want to
>> unify
>> the B's mapping with a2 attribute's mapping:
>> 
>> class name="A" 
>>   field name="a1" type=...
>>   field name="a2" type=...
>>     bind-xml name="a2" location="bObject" node="element"
>>   \field
>>   field name="bObject" type="B"
>>     bind-xml name="bObject" \
>> \class
>> 
>> class name="B"
>>    field name="b1" type=...
>>    field name="b2" type=...
>> \class
>> 
>> As a result, the a2 attribute is mapped into a new bObject tag... What is
>> what I'm doing wrong?
>> 
>> Thanks for all
>> 
>> Regards
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/A-class%27s-attribute-inside-B-class-in-XML-tf3974727.html#a11300407
Sent from the Castor - User mailing list archive at Nabble.com.


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

    http://xircles.codehaus.org/manage_email

Reply via email to