Hi, Please Help!! I'm pretty new to camel so bear that in mind. I'm trying to inject a header in to a message from a Processor I've implemented. However, when I run I keep getting this:
[Fatal Error] :1:1: Content is not allowed in prolog." Below is my camel context: <bean id="billingRequestProcessor" class="com.foobar.BillingRequestProcessor"/> <camelContext id="camelContext" xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="file:C:\FTP\BILLING_REQUEST_PENDING?delete=true"/> <process ref="billingRequestProcessor"/> <choice> <when> <xpath>$fileAccepted = 'true'</xpath> <to uri="file:C:\FTP\BILLING_REQUEST"/> </when> <otherwise> <to uri="file:C:\FTP\BILLING_REQUEST_ERROR"/> </otherwise> </choice> </route> </camelContext> And in BillingRequestProcessor I am doing some processing resulting in: @Override public void process(Exchange exchange) throws Exception { Map<String, Object> headers = exchange.getIn().getHeaders(); headers.put("fileAccepted", "true"); exchange.getIn().setHeaders(headers); } -- View this message in context: http://camel.465427.n5.nabble.com/Processor-to-xpath-tp5545719p5545719.html Sent from the Camel - Users mailing list archive at Nabble.com.