On Fri, Sep 24, 2010 at 3:33 PM,  <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).
>

Well Camel only converts when really needed, or if you ask it to do
so, such as from the Processor where you asked it to convert to a DOM.

The XPath expression/predicate in Camel can work with the input
message as source types, eg InputSource (I think the XML class name
is). That means
it can work on the message in the optimal way it sees fit.




> 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.
>

Yeah type convertions of big xml payloads can cause performance. So mind here.


>
> *********************************
> 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