camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bharadwaj nakka (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CAMEL-3697) XPath expression should accept an expression to more easily allow dynamic XPath text to be defined in the DSL
Date Mon, 22 Dec 2014 12:07:13 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-3697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14255681#comment-14255681
] 

bharadwaj nakka edited comment on CAMEL-3697 at 12/22/14 12:06 PM:
-------------------------------------------------------------------

						<camel:setProperty propertyName="TestID">
							<camel:xpath>in:header('Prop_req')/@ID</camel:xpath>
						</camel:setProperty>



was (Author: bharadwaj):

						<camel:setProperty propertyName="Test">
							<camel:xpath>in:header('Prop_req')/@ID</camel:xpath>
						</camel:setProperty>


> XPath expression should accept an expression to more easily allow dynamic XPath text
to be defined in the DSL
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-3697
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3697
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.6.0
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 3.0.0, Future
>
>         Attachments: CAMEL-3697.txt
>
>
> See 
> http://stackoverflow.com/questions/5067634/xpath-from-string
> In the ExpressionClause the xpath builder is only accepting a String as they XPath text.
We should provide a method which accepts a Camel Expression as well.
> So you can do
> {code}
>   .when().xpath(simple("/foo:${header.variable}")).to("mock:y")
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message