used \SimpleXMLElement to generate xml instead of string contact