From Android Studio , start Android Device Monitor, go to File Explorer, and browse "/data/data/< name of your package >/shared_prefs/". You will find the XML there... and also you can copy it for inspection.

If you have a non-rooted device it's not possible to do that directly from Android Studio. However, you can access the file with adb shell as long as your application is the debug version.

adb shell
chmod 777 shared_prefs/
exit # return to default user
cp /data/data/ /sdcard

After that you can pull the file from /sdcard directory with adb.