remove xml tidying as it does not work yet