add printing of modified XML for debug