Hi everybody,
Lets say that I have a ArrayList and I want to marshall it to a xml file
with a mapping file so
I can get a result like this:
<resources num-items= x >
<resource id=1/>
<resource id=2/>
<resource id=3/>
<resource id=4/>
.
.
</resources>
And lets say my object is something like this
Public Class item {
String item,
String name,
//Setters and getters
}
Is it possible to do this?
I could get the num-items to work by doing something like this
<class name="java.util.ArrayList" auto-complete="false">
<map-to xml="resources"/>
<field name="size" get-method="size">
<bind-xml name="num-items" node="attribute"/>
</field>
.
.
.
But I can not customize the object fields
Thanks for your help
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------