[Simple-support] @ElementList on List interface adds class attribute to XML
Brought to you by:
niallg
|
From: <ea...@gm...> - 2007-12-05 03:13:03
|
Hi, all
I'm trying to convert a List<String> into XML. I used @ElementList as
mentioned in the tutorial which works but the attribute "class" is
added to my XML:
@Root
public class Table {
@ElementList
private List<String> list;
....
}
<table>
<list class=3D"java.util.ArrayList">
...
</list>
</table>
XML conversion works correctly if I used a concrete implementation
such as an ArrayList. Is there a way to still make use of List
without Simple adding the "class" attribute?
Thanks
--=20
Ealden Esto E. Esca=F1an
http://ealden.net
|