Hi Yeah XPath should be able to use or in the expression but I cant remember the syntax if its or or || or something like that. Check out google to find the xpath syntax.
On Mon, Jan 18, 2010 at 11:56 AM, lekkie <[email protected]> wrote: > > Hi Guys, > > I'd like to grep wot comes to a certain route by checking for an element in > each exchange's XML message. > > Each exchange will produce diff exchange message and I 'd like to grep based > of each individual element. > > E.g if I am expecting 3 icoming exchanges > > <aggregate batchSize="2" outBatchSize="2"> > <correlationExpression> > <!-- I'd like to do an expression to grep for each exchange > that comes > in here to check if > a particular element is say "reponse code" and if another > exchange has a certain element in its xml message. I believe I can use > xpath. but I am not certain how to check multiple prdicates. Something e.g > if element_node == "response code" or element_code = "someXMLelement"--> > </correlationExpression> > <to uri="mock:result"/> > </aggregate> > > kind regards. > -- > View this message in context: > http://old.nabble.com/Compound-Correlation-Expression-tp27208835p27208835.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
