camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hutao722 <>
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
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
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

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?


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message