=== modified file 'dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/view/Jaxb2Utils.java' --- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/view/Jaxb2Utils.java 2012-02-15 17:54:32 +0000 +++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/view/Jaxb2Utils.java 2012-02-15 18:08:10 +0000 @@ -28,6 +28,7 @@ */ import java.io.InputStream; +import java.io.OutputStream; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; @@ -48,6 +49,12 @@ return marshaller; } + public static void marshal( Object domainModel, OutputStream output ) + throws JAXBException + { + Jaxb2Utils.createMarshaller( domainModel ).marshal( domainModel, output ); + } + public static Unmarshaller createUnmarshaller( Class clazz ) throws JAXBException {