Hi Raul, Thanks for you reply. The query returns exactly one node. To retrieve the node, I do something like this:
Node containerNode = containerNodeList.item(0); The OJBCamelXpath annotation is a class like this: @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER}) @LanguageAnnotation(language = "xpath", factory = XPathAnnotationExpressionFactory.class) public @interface OJBCamelXpath { String value(); // You can add the namespaces as the default value of the annotation NamespacePrefix[] namespaces() default { @NamespacePrefix(prefix = "foo", uri = "http://someNamespace/1.0") }; Class<?> resultType() default NodeList.class; } It allows you to do an Xpath bean parameter binding. It allows for "Xpath injection" as described on this page: http://camel.apache.org/xpath.html Thanks! Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Xpath-parameter-binding-NodeList-vs-Node-tp5738067p5738072.html Sent from the Camel - Users mailing list archive at Nabble.com.