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
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.