I've a problem when using xpath filter. Here is my code below.
-----------------------------------------------------
public class XMLFileFilter extends RouteBuilder{

        public void configure() {
        
              from("file://data/inbox?noop=true")
              .filter()
              .xpath("/orders/order/@id")
              .to("file://data/outbox?fileName=fin.xml");
           }
        
}
-----------------------------------------------------
Here is my input file.
--------------data/inbox/a.xml---------------------------------------
<orders>
 <order id="1"></order>
 <order id="2"></order>
</orders>
-----------------------------------------------------

I was trying to read the input file a.xml and filter it to just write the
order ids to a different file(fin.xml) using camel. For some reason, the
filter doesn't work and I always get the output same as the input without
any change.

Can somebody help me on this?

Thanks
Boney

--
View this message in context: 
http://camel.465427.n5.nabble.com/Xpath-filter-issue-tp5635933p5635933.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to