title: Spring Integration XPathMessageSplitter + HeadEnricher
body: <p>I am currently using Spring-Integration with JavaConfig and using IntegrationFlows. I am reading in a xml-file which looks like:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;languages&gt;
      &lt;language name='de'&gt;
          &lt;translations&gt;
              &lt;translation key='Aktien' value='Aktien'/&gt;
              &lt;translation key='Andere' value='Andere'/&gt;
          &lt;/translation&gt;
      &lt;/language&gt;
      &lt;language name='en'&gt;
          &lt;translations&gt;
              &lt;translation key='Aktien' value='Stock'/&gt;
              &lt;translation key='Andere' value='Others'/&gt;
          &lt;/translation&gt;
      &lt;/language&gt;
  &lt;/languages&gt;
  </code></pre>
  
  <p>My Configuration currently looks like:</p>
  
  <pre><code>@Bean
  public IntegrationFlow translationFileReadingFlow() throws IOException {
      return IntegrationFlows
              .from(pollableFileSource(), e -&gt; e.poller(Pollers.fixedDelay(MAX_VALUE)))
              .split(translationFileSplitter())
              .channel("processFileChannel")
              .logAndReply();
  }
  
  @Bean
  @SubscribeMapping(value = "processFileChannel")
  public IntegrationFlow applicationShutDown() {
      return IntegrationFlows
              .from("processFileChannel")
              .resequence()
              .handle(new ShutdownService())
              .get();
  }
  
  private AbstractMessageSplitter translationFileSplitter() {
      XPathMessageSplitter splitter = new XPathMessageSplitter("/languages/*");
      return splitter; 
  }
  </code></pre>
  
  <p>I would like to split the xml by language (what works so far), BUT I would like to add also the information of the languages into the header of the message. The information are in the xml <code>&lt;language name='de'&gt;</code>. Can I solve it with the <code>XPathMessageSplitter</code> directly or do I need the <code>XPathHeaderEnricher</code>, if yes how would it work? </p>
  
  <p>Thank you in advance</p>