Hello akakuris,
Our experts believe this is likely due to user didn’t have admin privileges during the installation, setup tried to generate/write XML documents and it is failing , so worth checking the SQL Server setup account that it has administrative privileges or not. If that’s the case, I’d expect the error code to reflect an access denied or perhaps a path/file not found, and we could refer the customer to https://docs.microsoft.com/en-us/troubleshoot/sql/install/installation-fails-if-remove-user-right.
It could also be a bit more elaborate and be something like the example in this blog article - https://www.mssqltips.com/sqlservertip/4276/sql-server-setup-error--there-was-an-error-generating-the-xml-document-error-code-0x84b10001/.
https://stackoverflow.com/questions/11294714/getting-xml-error-when-installing-sql-server-2012 is another similar error message that was due to a missing password.
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/10d4ab5c-55be-4dd1-8ca7-13a1703bd9f0/sql-server-2008-installation-fails-there-was-an-error-generating-the-xml-document-error-code?forum=sqlsetupandupgrade shows yet another potential cause, and also gives an example of the full error stack pulled from bootstrap logs.