[ 
https://issues.apache.org/activemq/browse/CAMEL-256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

James Strachan resolved CAMEL-256.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3.0

Patch applied with thanks Roman! I've also added a helper method to the 
Namespaces class so you can do

{code}
Namespaces ns = ...;
ns.xpath("/foo/bar", String.class);
{code}

i.e. you can specify the result type if you want.

> Easy way to set namespaces on XPathBuilder
> ------------------------------------------
>
>                 Key: CAMEL-256
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-256
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Roman Kalukiewicz
>            Priority: Minor
>             Fix For: 1.3.0
>
>         Attachments: xpath-namespaces.patch
>
>
> {{XPathBuilder}} contains {{namespace()}} method that can configure 
> namespaces for {{XPathBuilder}} but there is no easy way to reuse many 
> namespaces using DSL.
> We could use {{Namespaces}} object and its {{xpath()}} method, but it returns 
> {{XPathExpression}} so there is no easy way to set return type.
> Applied path adds {{namespaces()}} method on {{XPathBuilder}} so we can 
> configure it with namespaces provided using DSL.
> Another solution would be to change {{xpath()}} method on {{Namespaces}} 
> class so it returns {{XPathBuilder}}, but I'm not sure if it doesn't 
> influence XML configuration.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to