I love both Glocks & XD's. My advice is to wait until SA has converted to using Melanite on the entire XD line and then get an XD9. If you are not willing to wait for that, then go for the Glock. But remember, always feel it before you fork over the money. If the Glock doesn't feel right or point right for you, then stick to the XD's.
Ive got both. Fine weapons. G17 is the topper though. Its about as bullet proof as it comes. Ive had a couple of hiccups from the XD like failing to lock back after the last round, other than that shes behaves well. The finish on mine was also sub par in my opinion. I think SA is correcting that on the newer models. Besided the G17 is the corner stone of all glocks, the first of glocks made. So you gotta have one !
Check em out. I dont think you can go wrong with the 17.:beer: