camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From souciance <>
Subject Re: XPath Content Based Routine Fails when urn xmlns is specified in base element.
Date Wed, 08 Jun 2016 14:57:59 GMT
Take a lot at the namespace section in the documentation:
There is an example there for adding namespace support but it seems to be
for the java dsl. For the xml dsl you may need to add the namespace
manually in the xml declaration. Perhaps someone also knows if you
construct namespaces using the xml dsl?

On Wed, Jun 8, 2016 at 3:37 PM, bbuzzard [via Camel] <> wrote:

> I am using JDK1.7 with apache-activemq-5.13.2 which is using
> canel-core-5.13.2.
> I am trying to route documents based on the value of an XML element.  My
> test route should routes documents to the "when" folder when the author's
> name is "Bob" and it routes documents to the "otherwise" folder when the
> author's name does not match "Bob".  The route worked great until I started
> added an xmlns containing a urn to the base element.  As soon as I added
> the urn all documents when to the "otherwise" folder.  Adding a xmlns
> containing a URL works.  The documents that I expect to process will
> contain the URN.  What must I do to get this CBR working?
> test1.xml will correctly route because it does NOT contain an URN in the
> base element.  test2.xml will NOT route correctly because it does contain
> an URN in the base element.  The "camel.xml" file contains my simple CBR".
> camel.xml <>
> test1.xml <>
> test2.xml <>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> To start a new topic under Camel - Users (activemq), email
> To unsubscribe from Camel - Users, click here
> <>
> .
> <>

View this message in context:
Sent from the Camel - Users mailing list archive at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message