build xml.