use of se.inera.ifv.insuranceprocess.healthreporting.sendmedicalcertificatequestionresponder.v1.QuestionToFkType in project webcert by sklintyg.
the class FKQuestionConverterTest method jaxbToXml.
private String jaxbToXml(QuestionToFkType object) throws JAXBException {
ObjectFactory objectFactory = new ObjectFactory();
Writer writer = new StringWriter();
// Init JAXB context
JAXBContext jaxbContext = JAXBContext.newInstance(QuestionToFkType.class);
Marshaller marshaller = jaxbContext.createMarshaller();
// Create a string representation from JAXB element
marshaller.marshal(objectFactory.createQuestion(object), writer);
return writer.toString();
}
Aggregations