Add an XML declaration in the output

Change-Id: I2e828cf7635f976244d30c9cc9013a997b9d7967