Using custom XMLInputFormat to try to avoid weird errors