/ Published in: Java
Simple Annotated Class to XML marshling using JAXB
Expand |
Embed | Plain Text
public class Play { if (rootElement == null) if (writer == null) JAXBContext context = JAXBContext.newInstance(rootElement.getClass()); Marshaller marshaller = context.createMarshaller(); marshaller.setProperty( marshaller.marshal(rootElement, writer); } generateXML(new AnnotatedClass(), writer); } }
You need to login to post a comment.
