camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hutao722 <hutao...@163.com>
Subject Re: JAXB partial unmarshalling
Date Mon, 16 Sep 2013 09:25:40 GMT
Thank you for your explain, Willem. But i read from the link
http://camel.apache.org/jaxb.html
it says: 

JAXB 2 supports marshalling and unmarshalling XML tree fragments. By default
JAXB looks for @XmlRootElement annotation on given class to operate on whole
XML tree. This is useful but not always - sometimes generated code does not
have @XmlRootElement annotation, *sometimes you need unmarshall only part of
tree*.
In that case you can use partial unmarshalling. To enable this behaviours
you need set property partClass. Camel will pass this class to JAXB's
unmarshaler.

i thought the partial unmarshalling can unmarshall the only part of tree.
Now my question is that if i have a big SOAP response and i only wish to
focus on just small pieces, as you said,  i need to travel the xml tree by
dom or sax and skip the unnecessary content, right? This may have a lot of
work to do, do we have better ways?

Thanks!    



--
View this message in context: http://camel.465427.n5.nabble.com/JAXB-partial-unmarshalling-tp5739497p5739509.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message