camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Unmarshall a part of a XML file using JAXB
Date Tue, 08 Jul 2008 14:16:31 GMT
2008/7/8 cmoulliard <cmoulliard@gmail.com>:
>
> Hi,
>
> Is it possible through the routing to tell the processor that I want to
> unmarshall a part of the XML file parsed ?
>
> Idea :
>
> From("File:///c:/temp/test)
> .extract(xpath(//NodeSearched/*)
> .unmarshall(jaxb)
> .to("bean:transform)

you could write custom Java for this in a bean, or use an XQuery
transform; then call

unmarshal().jaxb()

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Mime
View raw message