make xml from a list of data