Hi All,

I have an object as such:

class MyClass {
  Element[] element;
}

I would like it to map as such:

<my-class>
  <elements>  <---- I would like to see this extra framing tag.
      <element>XXXXX</element>
      <element>XXXXX</element>
  <elements>
</my-class>

Using the cst:collection="array" attribute, I get something that looks more like this.

<my-class>
   <elements>XXXXX</elements>
   <elements>XXXXX</elements>
</my-class>

Is there a good way to get castor to add the parent grouping (elementS) tag without changing my data model (the data model is a legacy data structure which can not be changed without great cost).

Thanks!

Scott

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail


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




Reply via email to