Hi, I want to upgrade my PC from Windows XP to Windows 10 Pro, but my XP can no longer access the Internet
Is that illegal
There's no upgrade from Win XP to Win 10.
So you have to completely reinstall.
You can also use windows 10 without a license for the time being. Simply install without a key, it also works and is legal, but a license should follow soon because otherwise no updates.
You will certainly have to reinstall some drivers.
You should download it before the update and load it onto an external USB stick. Many old drivers from XP no longer work under Windows 10.
Yes, you can and is also legal. However, the whole thing has to be completely reinstalled as there's no upgrade from XP to Win10. Most Windows XP drivers are no longer supported on Win10 either. You can also download Win10 for free and use it without a license to test it out. You also need a USB stick. You can find many instructions on how to install Win10 and its drivers correctly on the Internet.
I assume that your BIOS can't boot from a USB stick due to its age.
Therefore, download the Win10 ISO file on another Win laptop / PC and burn it as an ISO onto a DVD using a suitable program such as CDBurnerXP.
During the Win10 installation click on "I do not have a product key". - The installation will then continue.
Officially, you then have 30 days for activation.
Make sure that the PC is connected to the Internet via LAN during the Win10 installation. - The installation program then has the option of automatically downloading and installing the required device drivers, if available.