Hi,

have a look at the documentation of the <bind-xml> element of the mapping file, available at

http://castor.org/xml-mapping.html#The-%3Cbind-xml%3E-element

The 'content' attribute allows you to specify whether a given field of your Java class is mapped to an element, an attribute or content.

Now there's nothing that prevents you from using a combination of fields (and their associated bindings) so that you are dealing with element and text content.

I hope this makes things a bit clearer.

Regards
Werner Guttmann


ManuRom wrote:
HI,
     in my xml tag if it contains field as shown how it will be handled
<abc>
    <bcd rs="attribute">node</bcd>
</abc>

how do i write mapping file for this.

Thanking you,
Regards,
Manu


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

   http://xircles.codehaus.org/manage_email


Reply via email to