i have this method:
public StampaModuloPrivacyResponse generaXmlALC(StampaModuloPrivacyRequest input)
{
final StampaModuloPrivacyResponse stampaModuloPrivacyResponse = new StampaModuloPrivacyResponse();
try {
JAXBContext jaxbContext = JAXBContext.newInstance(StampaModuloPrivacyRequest.class);
Marshaller jaxbMarshaller = jaxbContext.createMarshaller();
jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
jaxbMarshaller.marshal(input, System.out);
/*HERE*/
} catch (JAXBException e) {
e.printStackTrace();
}
return stampaModuloPrivacyResponse;
}
}
I need to transform the xml returned from marshaller in a string because i have to set in the stampamoduloPrivacyResponse.setXMLString() ...how i can do? thanks