Auto insert xml declaration