Avoid extra lines between the last XML line and the EOF mark.