Independent if the input is provided in an XML file or a CSV file, you will have to know which parameters you want to define.
If you look at the parameters in the New-VM cmdlet, you'll notice there are quite a lot of them.
Once you know the parameters you need to provide, you can start creating the file.