jaxb - Can JAX-B include an XML-valued attribute verbatim? -
i have object return value web service method. 1 of properties contains xml document. ideally, i'd have jax-b include xml document verbatim in web service response, rather escaping or having unmarshal allow webservice mapping marshal again immediately.
can done via annotations or custom binding definition?
edit: reason want xml document retrieved oracle db (column type xmltype), , want avoid unnecessary parsing/formatting steps in getting out webservice client.
i think you'll have convert xml string org.w3c.dom.element
object first, add model, , annotate @xmlanyelement
. jaxb serialize verbatim xml (schema validation not withstanding).
Comments
Post a Comment