Use XML Reader [XML reader] and XML Writer [XML writer] to write out failed parts and feed them back into the process.