fix bug in xml output for deep rendering trees