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.

Reply via email to