Is it possible to use JAXB to map from schema to a java.util.Map?

后端 未结 2 854
遥遥无期
遥遥无期 2020-12-09 09:57

I have an existing XML schema that contains a type that I would like to map to a Java Map of some sort using JAXB. My build process takes the schema and creates the beans. I

2条回答
  •  余生分开走
    2020-12-09 10:51

    Have you looked at example here (Customized mapping of HashMap): http://java.sun.com/javase/6/docs/api/javax/xml/bind/annotation/adapters/XmlAdapter.html

    Need to create custom XmlAdapter I'm afraid.

提交回复
热议问题