Hello Claus,
Thanks for the help. Bindy was really helpful.
I am still using xstream though, its lot more easier (I feel).
Giving the working solution of this problem if anybody needs one.
/DataFormat bindy = new BindyCsvDataFormat("com.your.package.dto");
from("file://TEST?fileName=Employee.csv").
unmarshal(bindy).
marshal().
xstream().
to("file://TESTOUT?fileName=employee.xml"); /
This works as expected. /"com.your.package.dto.EmployeeDTO"/ has to be
annotated properly to make this work.
List of dependencies:
camel-bindy-2.9.0.jar, camel-core-2.9.0.jar,camel-csv-2.9.0.jar,
camel-xstream-2.9.0.jar,
slf4j-api-1.6.4.jar, slf4j-log4j12-1.6.4.jar,
solr-commons-csv-1.3.0.jar,xstream-1.3.1
-----
thanks
Amby
http://workingwithqueues.blogspot.com/
--
View this message in context:
http://camel.465427.n5.nabble.com/Converting-CSV-to-XML-tp5711086p5716294.html
Sent from the Camel - Users mailing list archive at Nabble.com.