users@jaxb.java.net

Re: Custom mapping for Maps in JAXB

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Fri, 18 Jun 2010 07:38:42 +0200

Hi,

> My understanding of XML Schema is that <xs:element>s are static components
> of their parent <xs:element>. This maps to Java classes, where elements are
> represented as fields.
>
> Using tags to represent what is actually data (as opposed to field selector)
> would also cause problems with other XML processors such as XSLT.
>
> Feel free to disagree ;-)

I think there's nothing wrong with the idea. There's a lot of cases
when you actually want to express a map-like construct in XML.

I even think it's possible to implement with a combination of XJC
plugin and some runtime things like element wrappers.

Bye,
/lexi