adding xml to log