Distinguish between empty files and other invalid XML