1 Reply Latest reply on May 30, 2012 12:35 AM by Claus Ibsen

    Separate XML tags in differents files with splitter

    alexis poirier Newbie

      Hi guys!

       

      I'm a beginner in apache camel and I would develop a route which separate XML tags in differents xml files with the split().

       

      For example with the xml file below :

       

      <person user="james">

        <firstName>James</firstName>

        <firstName>John</firstName>

        <lastName>Strachan</lastName>

        <city>London</city>

      </person>

       

      I would like to have: one xml file which contains the first tag <firstName>James</firstName> and another xml file which contains the second tag <firstName>John</firstName>.

       

      Does it possible to do that with camel and how? I didn't find solutions for the moment.