XML Schema with enumeration

Unlimited

New Member
I am using XJC to create from XML Schema a Jaxb annotated class.With \[code\]JAXBContext context = JAXBContext.newInstance(SomeClass.class);Marshaller marshaller = context.createMarshaller();StringWriter writer = new StringWriter();marshaller.marshal(cardJob, writer);String resultString = writer.getBuffer().toString();\[/code\]I create an xml output string - This works perfect. What I want to achieve is, adding an enum to this class like \[code\]Jan (1, "January"),Feb (2, "February"),...\[/code\]by creating an entry in the xml schema and getting in the end an output like<.January><./January>.Maybe wrong but something like an xml element from an enum entry name.Help would be pretty great, cause I dont get any solution :(
 
Back
Top