Ding ding, we have a winner!!!
Bob is right, the 40 cal XD is way too short for 10mm. You might be able to hack a 45 XD into a 10mm, but just thinking about it is probably more money than a new XD costs.
You can safely handload 40 to pretty darn stout ballistics, look at Hodgdon...