Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

unmarshal CDATA sections

$
0
0
Hi,

is there a way to umarshal XML with CDATA sections and back using jaxb in
camel routes?

This is my XML:
<Error><Payload></Payload></Error>

I created a test route to unmarshal and marshal in series:

DataFormat jaxbError = new JaxbDataFormat("error.model");

from("direct:error")
.unmarshal(jaxbError)
.log("${body}")
.marshal(jaxbError)
.to("mock:error");

Btw I'm creating my model objects with xjc from a schema file.

Thanks in advance
Yusuf

Viewing all articles
Browse latest Browse all 5648

Trending Articles