camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Douglass <>
Subject Re: Splitting on XML Documents
Date Thu, 26 Jan 2012 00:03:59 GMT

I think the xml processing "fix" you've got there is a bit of red-herring.

The xml processing instruction should only be necessary if you are
converting the output of the xpath to a String prior to the xslt endpoint,
whether directly or indirectly. Without any explicit conversion, the output
of the xpath will be a Node object (DeferredElementNSImpl in my test),
which is converted to a Source via camel's built-in type conversion.

I just set up a quick unit test with a route very similar to yours and
everything worked as I expected. Granted this test was in an existing
project using camel 2.7.3 (time to upgrade!).

I suspect you're either running into a namespace problem[1] or your
templates XPaths aren't expecting Parcel (from your example) as the root


Let us know more info (example XML and XSLT) if my suspicions are off base.


On Wed, Jan 25, 2012 at 3:35 PM, Chris Geer <> wrote:

> Sorry, 2.8.3.
> On Wed, Jan 25, 2012 at 3:29 PM, Babak Vahdat
> <>wrote:
> > And what about the Camel version you use?
> >
> > Babak
> >
> > --
> > View this message in context:
> >
> > Sent from the Camel - Users mailing list archive at
> >

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message