adding xml declaration to Documents