Find all files with the name ending in ".xml" in the current directory and its subdirectories up to 3 levels deep, and execute the command "grep -l "string" '{}'" on each of them.
find -maxdepth 3 -iname "*.xml" -exec grep -l "string" '{}' \;