pass in an object that has the Profile props at the top level. This function will add the outer wrapper Profile and convert the result to xml