Hi,
I am using StaxEventItemReader and CastorMarshaller to read a XML file and this XML file contains some invalid records.
So whenever it throws a reading time exception (like UnmarshallingFailureException) , i just want to write this current faulty record to another file lets called bad.xml .
For this,i am using skiplistner implementation but i am not able to fetch error record.
Please help me to find a solution for this.

Thanks.