You will need to validate your XM account to withdraw profit. To validate your account, you need to provide two types of documents which is Identification Document and Proof of Address.
Since XM is a regulated by multiple regulatory authorities, it is mandatory for XM to collect documents from clients to KYC(Know Your Clients).
You can still start trading without validating your account though, you cannot withdraw without validating it.
Almost all the FX & CFD brokers’ required documents are same, so if you are going to prepare the copy of the documents, you may want to open accounts of several brokers at once.
For the types of documents and other conditions for the verification can be found in the official website.