Hi,

i trying to use xpath to extract text and setting it to exchange property
```
            .setProperty(code, xpath("//code", String.class))
```
but seem that due to the xml body having namespace, xpath didnt manage
to extract the value.
i try to add namespace into the route, but don't seem to be work.

```

    public void configure() throws Exception {
        new Namespaces("com", "http://test.com/test";);

        from("direct:...")
   }
```
understand that we can add the namespace in the spring DSL
```
<route xmlns="http://camel.apache.org/schema/spring";
       customId="true" xmlns:com="http://test.com/test"; >

```
is that possible to do it on java DSL ?

Thanks and Regards,
Chio Chuan

Reply via email to