Add XML printing (for scala code)