Here are the few things that needs to be done.
1. Remove all the xml tags that precedes <l7:IdentityProvider>. Ensure you remove the closing tags at the bottom as well.
You should be having the firstline something like below
<l7:IdentityProvider id="123456789" version="18">
and last line as </l7:IdentityProvider>
2. Now remove the attributes "id" and "version" from the <l7:IdentityProvider> tag and add the namespace
You should be having the firstline something like below
<l7:IdentityProvider xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
and last line as </l7:IdentityProvider>
3. Import the xml into target gateway
./GatewayMigrationUtility.sh restman -z target.properties --method PUT --path '1.0/identityProviders/{identityProviderID}' --request IDProviderResponse.xml
Please try this and let me know how it goes.
Thanks,
Adarsh