You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Master_mind <dm...@gmail.com> on 2015/12/14 13:29:50 UTC

Creating Apache Camel route to get value of XML-file attribute

            from(Main.strPath)
            .setBody(xpath("/rss/channel/item/attribute/@temp",
String.class))
                    .to(Main.test);

There is example. What should i define in "to()"? I tried: path to txt doc,
xml doc, and to String variable - it doesn't work( I need this attribute for
another manipulation...



--
View this message in context: http://camel.465427.n5.nabble.com/Creating-Apache-Camel-route-to-get-value-of-XML-file-attribute-tp5775054.html
Sent from the Camel - Users mailing list archive at Nabble.com.