xml-split: a miss understanding over the subtleties of ifstream failure flag caused data loss