title: Handling corrupted xml file in Spring Batch using StaxEventItemReader as reader
body: <p>I am using StaxEventItemReader for reading xml file as below:</p>
  
  <pre><code>&lt;bean id="itemReader" class="org.springframework.batch.item.xml.StaxEventItemReader"&gt;
      &lt;property name="fragmentRootElementName" value="Basket" /&gt;
      &lt;property name="resource" value="classpath:xml/basket1.xml" /&gt;
      &lt;property name="unmarshaller" ref="reportUnmarshaller" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>If xml file is in corrupted form, I need to move file to "failed" folder. However, I couldn't find any handle for this. </p>
  
  <p>Please provide any help for this.</p>