I need generate the following XML in swift 5 in order to post it with Alamofire. I tried doing this with XMLMapper but could not figure out how to handle this. Could anyone