output depth in xml format