camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Whytock <dwhyt...@gmail.com>
Subject Re: can't tranform Body to DOM
Date Fri, 24 Sep 2010 19:10:13 GMT
Would

org.w3c.dom.Document doc = ex.getIn(org.w3c.dom.Document.class);

work any better?

Don

On Fri, Sep 24, 2010 at 9:33 AM,  <patrice.godard@orange-ftgroup.com> wrote:
>
>
>> -----Message d'origine-----
>> De : Claus Ibsen [mailto:claus.ibsen@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.godard@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.
> ********************************
>
>

Mime
View raw message