On Wednesday 24 March 2010 9:38:14 am chengy wrote:
> Is it possible to adapter a List<Hashtable<String, String>> type??I try
> some way,but always throws Unmarshalling Error
>
> java method:
> String sayHi2(@XmlJavaTypeAdapter(HashtableAdapter.class)
> List<Hashtable<String, String>> list);
>
> Below is not correct:
> public class HashtableAdapter extends XmlAdapter<HashtableType,
> Hashtable<String, String>> {
> ...
> }
I think the XmlAdapter would have to be for the entire parameter. Like
XmlAdapter<CollectionOfHashtableType, List<Hashtable<String, String>> or
similar.
--
Daniel Kulp
[email protected]
http://dankulp.com/blog