schema generation with xs:language
We are using com.sun.tools.jxc.SchemaGenTask to generate schema from our java files. I'm trying to figure out if its possible to generate XML elements with the type of xs:language rather than xs:string. For example, I've got a member variable defined as follows.
@XmlElement(name = "Locale")
protected java.util.Locale locale;
In the above example LocaleAdapter.class is just a custom adapter that I've defined which maps java.util.Locale to a String. What I would like to have happen though is for the element to be generated as
Any suggestions? Is what I'm thinking possible?