Marshalling of Object with CDATA using Jersey Framework
问题 i want to marshal my object using CDATA block. i can do this with creating marshaller and setting property for CharacterEscapeHandler(http://stackoverflow.com/questions/14193944/jaxb-marshalling-unmarshalling-with-cdata). but in Jersey marshalling is done by jersey. so how can i tell jersey to marshal object with CDATA. i have following service @GET @Path("/getdata") @Produces(MediaType.TEXT_XML) public HelloBean getData() throws Exception { HelloBean h1 = new HelloBean(); h1.setName("kshitij