Bought an XD9 Service Model about a year ago and it has performed flawlessly. Shot both Glock and the XD at my local range before buying the XD due mainly to the better grip (not to mention the cheaper price). The XD also has steel sights instead of plastic and I also like the stainless steel XD mags. The Glocks have a better finish on them. There have been some issues with rust and the XD, but I've had no problems. There's a wealth of information about the XD at
XD Talk. A lot of guys own both. The XD comes with a lifetime warranty - don't think the Glock does.
After my year with the XD, wouldn't even consider a Glock if I bought another handgun. Be either a sub-compact XD 9mm or .40 or an XD in .45 gap.