If you’re attempting to export your Apple Music library to Roon, try re-creating the XML file after verifying Roon has appropriate permissions at the OS level in System Settings → Privacy & Security on the Mac itself.
This is the solution for the vast, vast majority of reports matching your description, so we’re going to mark this as Resolved for other users, pending a response from you.
If you still need help after trying the above, reach back out here, or create a new support request if this thread has auto-closed due to inactivity already.