I had an XD-40 that I liked, but since have traded. I put on a set of Firesights. The factory sights were a real pain, and I cannot stress that enough. I ended up clamping it down and going at it with a hammer and a punch. Tried to pad the punch some, but really had to whack away at it to get the front one off. The rear one came off a little easier. Best advice, if you are a little leary, get someone else to do it for you. If you like to tinker and don't worry too much about things, then by all means give it a try yourself.
Install of the Firesights was easier. The front one I did file a little off the sides to get it started in the groove. Once started, a couple of hits and it was in tight. Never had them move on me. Started by marking the slide with a pencil to indicate where to center the new ones. That helped since adjusting them once in would not have been fun. Shot point of aim and worked well with factory ammo.
Traded it because it did not like reloads. Tried all kinds of fixes, even had some other reloads that did not chamber. A pet peeve of mine; like to reload and would have hated having that gun and always having to use factory ammo.
Good luck.