fixed xml printing