camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siano, Stephan" <>
Subject RE: camel - xml
Date Wed, 26 Nov 2014 07:39:10 GMT
"/row/EMPNO/text()), String.class" is really not a valid XPath. You probably want to terminate
the String before the comma...

-----Original Message-----
From: smilevasu6 [] 
Sent: Mittwoch, 26. November 2014 08:21
Subject: camel - xml


I am having xml data like 


I am writing  a camel router like,

		setHeader("results", xpath("/row/EMPNO/text()), String.class")).
		setHeader("results", xpath("/row/ENAME/text()), String.class")).
		setHeader("results", xpath("/row/SAL/text()), String.class")).
		setHeader("results", xpath("/row/DEPTNO/text()), String.class"))

And i am getting error as 

org.apache.camel.builder.xml.InvalidXPathExpression: Invalid
xpath:/row/EMPNO/text()), String.class. Reason:

Can you please help me on this?

After this i want to put the data into database as well.


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message