Hi Hervé,
You should be able to do it as:
<collection name="matrix" field="...">
<collection name="row">
<value name="cell"/>
</collection>
</collection>
I'm not sure I've ever tested multidimensional arrays, though, so let me
know if this doesn't work properly.
- Dennis
Dennis M. Sosnoski
SOA, Web Services, and XML
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117
Hervé Bitteur wrote:
Hello,
Any hint from the JiBX gurus on how to bind a matrix of double?
For example, how should I declare the mapping for this Java declaration:
double[][] myMatrix;
I would expect something like the following xml fragment for a matrix
of 2 rows and 3 columns:
<matrix>
<row>
<cell>1.23</cell>
<cell>0.25</cell>
<cell>99.2</cell>
</row>
<row>
<cell>-0.3</cell>
<cell>5.56</cell>
<cell>0.01</cell>
</row>
</matrix>
Thanks for any hint
/Hervé
--
/Hervé
<callto://herve.bitteur> <callto://herve.bitteur>
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users