users@jaxb.java.net

Re: xml in a string

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Tue, 13 Nov 2007 10:40:20 +0100

Hi.

> i have a jaxws web service using jaxb and i have to send an xml file with it
> (i don't have the java classes of this file). So i try to put this file in a
> string and send it. but jaxb replace all my mark by their ascii code like
> that :
>
> &lt;keyword&gt;piezometer&lt;/keyword&gt;
>
> is there a way to keep my mark ?
> is it possible to send xml whitch is not generate by jaxb?

Make a DOM Element-typed field or property and annotate it with @XmlAnyElement.

Bye.
/lexi