The difference between XML that we get in response to any REST API and XML response from SOAP API lies…