build xml format