users@jaxb.java.net

Re: Re: Custom serialization/deserialization

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Wed, 7 Nov 2007 08:58:22 +0100

Hi.

> I'm trying to avoid Axis and do something that is portable to anything
> that implements the spec.
>
> I didn't like XMLAdapter because it requires me to generate the
> destination objects. Let's say I have Iterable<Map<String,String>>
> (note the use of abstraction here). I want to convert this into the XML
> below where the key of the map is the element name. How would I use
> XMLAdapter to do this?
> I also need to do the opposite, where I need to decompose this.

You can use XMLAdapter to convert to DOM element in whatever way you
wish and map the property as "any" element.

Bye.
/lexi