Using Castor, how do you map Java class java.util.ArrayList
to element <ArrayList/>
instead of <array-list/>
while still including the elements that it contains?
For example, the class mapping
<class name="java.util.ArrayList">
<map-to xml="ArrayList" />
</class>
maps an ArrayList
object to an empty element, omitting elements for the objects that the ArrayList
may contain. How do you coerce Castor into also generating elements for those contained objects?