Hello,

I would like to map the following XML to Java:

<result>
  <bar>baz</bar>
  <rows>
    <row>
      <integer>123</integer>
      <integer>321</integer>
      <string>foo</string>
    </row>
    <row>
      <integer>123</integer>
      <integer isNull="true"/>
      <string>foo</string>
    </row>
  </rows>
</result>

In Java words this is a Result class with one String bar attribute and
a rows Collection. The Collection contains row elements which are
themself Collection (a row can a have arbitrary number of cells). My
question is: does Castor support Collections of Collections
(rows->row->cell)? How would the mapping xml file look like? If there
is a problem for castor with the mixed types of the cells, the
following xml would be okay too:

<result>
  <bar>baz</bar>
  <rows>
    <row>
      <col type="integer">123</col>
      <col type="integer">321</col>
      <col type="string">foo</col>
    </row>
    <row>
      <col type="integer">123</col>
      <col type="integer" isNull="true"/>
      <col type="string">foo</col>
    </row>
  </rows>
</result>

Kind regards
-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger

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

    http://xircles.codehaus.org/manage_email

Reply via email to