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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -