commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Halterman" <>
Subject [betwixt] How to change a bean name before writing it out
Date Tue, 14 Nov 2006 06:34:38 GMT

I have a List of bean objects that I can successfully write out with
betwixt using BeanWriter. I'd like to specify some custom name for my
bean objects that I am writing out, as opposed to having the root xml
element for each bean being the bean's class name. Is there a way to
do this?


List myList = new Vector();
myList.add(new SomeBean("someData");

BeanWriter.write("beanlist, myList);

xml looks like:


I would like to use a custom name for my SomeBean elements so the xml
looks like:



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message