Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8066310530 for ; Mon, 16 Sep 2013 09:31:21 +0000 (UTC) Received: (qmail 75202 invoked by uid 500); 16 Sep 2013 09:31:18 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 75104 invoked by uid 500); 16 Sep 2013 09:31:17 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Delivered-To: moderator for users@camel.apache.org Received: (qmail 67515 invoked by uid 99); 16 Sep 2013 09:26:26 -0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=SPF_FAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: encountered temporary error during SPF processing of domain of hutao722@163.com) Date: Mon, 16 Sep 2013 02:25:40 -0700 (PDT) From: hutao722 To: users@camel.apache.org Message-ID: <1379323540820-5739509.post@n5.nabble.com> In-Reply-To: References: <1379306406876-5739497.post@n5.nabble.com> Subject: Re: JAXB partial unmarshalling MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.