The result is the same: one file with 2 tags.
I begin to think that camel can't split tags into several files
automatically.
--
View this message in context:
http://camel.465427.n5.nabble.com/Split-XML-file-tp5697441p5697667.html
Sent from the Camel Development mailing list archive at Nabble.com
You can use the message id as the file name, as its unique
to("file:outbox?fileName=${id}.xml")
On Wed, May 9, 2012 at 4:51 PM, alexis229 wrote:
> Sorry i didn't know. I can re-create my post if you want...
>
> Well, i know that I can create my own file name with the option "fileName"
> but it
Sorry i didn't know. I can re-create my post if you want...
Well, i know that I can create my own file name with the option "fileName"
but it didn't create differents files.
--
View this message in context:
http://camel.465427.n5.nabble.com/Split-XML-file-tp5697441p5697615.html
Sent from the Ca
On Wed, May 9, 2012 at 4:19 PM, alexis229 wrote:
> Now, with the fileExist option I have my two tags, but in a same file:
>
> JamesJohn
>
> And yes, it's normal that I have two tags firstName.
>
> I would like to separate these two tags in separate files.
>
You should use the @user mailinglist fo
Now, with the fileExist option I have my two tags, but in a same file:
JamesJohn
And yes, it's normal that I have two tags firstName.
I would like to separate these two tags in separate files.
--
View this message in context:
http://camel.465427.n5.nabble.com/Split-XML-file-tp5697441p5697510
Hi
Have you seen the documentation for the file component
http://camel.apache.org/file2
There is a fileExists option you can configure to Append instead of
Override (which is default).
And just to be clear, it is on purpose, you have 2 tags in
your XML ?
On Wed, May 9, 2012 at 3:52 PM, alexis2
You want an enumeration of Persons
On May 9, 2012, at 9:52, alexis229 wrote:
> Hi guys!
>
> First of all, I'm a beginner in apache camel, I try to develop a very basic
> route which split a XML file (see below).
>
> *
> James
> John
> Strachan
> London
> *
>
>
> My goal is to have, in