In Camel how can i split a route using xpath on a header -
as title suggests, have route header contains xml similar following snippet string; <files> <image_file1>image.png</image_file1> <image_file2>image.png</image_file2> </files> what i'm trying do split via xpath using following. following suggests when xml part of body, runs fine:- from(myincomingqueue) .convertbodyto(string.class, "utf-8") .split(xpath("//*[local-name()='files']/*")) .setheader("filepropertytoretrieve", xpath("local-name(//*)").stringresult()) .to(myfiledownloadqueue) .routeid("common-con-attachment_router-id"); i found solution using following:- from(myincomingqueue) .setbody(header("myheaderwithxml")) .convertbodyto(string.class, "utf-8") .split(xpath("//*[local-name()='files']/*")) .setheader("filepropertytoretrieve", xpath("local-name(//*)").stringresu...