No more problems with versions. You make one XML file, generate
portlet in all 6.0.x, 6.1.x and 6.2.x versions of Liferay.
Your option, if you want to use it, is to generate the code for Liferay 6.2 and then port it to DXP. Not sure if this is a good approach if you use xmlportletfactory for learning about assets, but - with xmlportletfactory - it's the only one short of implementing it for Liferay 7 and DXP yourself or waiting for the upgrade to be done.
From xmlportletfactory.org:
Your option, if you want to use it, is to generate the code for Liferay 6.2 and then port it to DXP. Not sure if this is a good approach if you use xmlportletfactory for learning about assets, but - with xmlportletfactory - it's the only one short of implementing it for Liferay 7 and DXP yourself or waiting for the upgrade to be done.