Hi,

Not sure where things are going wrong but in option 3 there should be no
need to marshal XML into Java before calling the method if you intend to use
XPath injection.

Please check out a straightforward working example of what you are looking
for given below. 

https://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/BeanWithXPathInjectionTest.java?view=markup
https://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/BeanWithXPathInjectionTest.java?view=markup
 

Hope this helps you move forward...

Cheers,

Ashwin...

-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com 
---------------------------------------------------------
--
View this message in context: 
http://camel.465427.n5.nabble.com/Reading-XML-file-into-a-bean-tp4617160p4617564.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to