users@jaxb.java.net

Lists and JAXB

From: Dan Diephouse <dan_at_envoisolutions.com>
Date: Mon, 09 Oct 2006 09:42:28 -0500

Is it possible to marshal an ArrayList? i.e. I have List<Customer> and I
want to do:

element = new JAXBElement(customers, ArrayList<Customer>.class, qname)
marshaller.marshal(element, writer);

I don't think it is, but I'm wondering what the best way to serialize an
ArrayList is if thats what I get handed...

- Dan

-- 
Dan Diephouse
(616) 971-2053
Envoi Solutions LLC
http://netzooid.com