On Fri, Sep 24, 2010 at 9:10 PM, Donald Whytock <dwhyt...@gmail.com> wrote:
> Would
>
> org.w3c.dom.Document doc = ex.getIn(org.w3c.dom.Document.class);
>
> work any better?
>

It's the same. By passing in the class type you tell Camel to convert
the message body to that class type (if needed to do so).


> Don
>
> On Fri, Sep 24, 2010 at 9:33 AM,  <patrice.god...@orange-ftgroup.com> wrote:
>>
>>
>>> -----Message d'origine-----
>>> De : Claus Ibsen [mailto:claus.ib...@gmail.com]
>>> Envoyé : vendredi 24 septembre 2010 15:23
>>> À : users@camel.apache.org
>>> Objet : Re: can't tranform Body to DOM
>>>
>>> On Fri, Sep 24, 2010 at 3:17 PM,  <patrice.god...@orange-ftgroup.com>
>>> wrote:
>>> > I just noticed that my BodyType is set to byte[].
>>> > Maybe it explains why the conversion to Dom produces a null?
>>>
>>> What version of Camel are you using?
>>>
>>
>> I'm using version 2.2.0.fuse-02-0 (Fuse 4.2)
>>
>> I'm a bit concerned about String <-> DOM conversion along Camel routes.
>> Most of the time I need parsed XML (because I need XPath and XSLT) but this 
>> XML gets enriched by a web service that returns XML as a plain String.
>> I feel I'm not controlling when and where the message Body gets converted 
>> (this is my first project with Camel).
>>
>> Currently I'm more in a feasibility/prototyping stage but I'm expecting some 
>> refactoring in the near future, when I know how to use Camel properly ;-) to 
>> make sure performances are not too degradated by unnecessary type 
>> conversions.
>>
>>
>> *********************************
>> This message and any attachments (the "message") are confidential and 
>> intended solely for the addressees.
>> Any unauthorised use or dissemination is prohibited.
>> Messages are susceptible to alteration.
>> France Telecom Group shall not be liable for the message if altered, changed 
>> or falsified.
>> If you are not the intended addressee of this message, please cancel it 
>> immediately and inform the sender.
>> ********************************
>>
>>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to