Both of the techniques mentioned above have worked for me. I tend to place the neck mic closer to the 7th or 9th fret, however, and if it is a solo guitar--depending on the song, I tend to pan a little wider.
Also, you might try ORTF. This arrangement, similar to XY, has about 7 inches distance between the capsules with a crossing angle of about 110 degrees. In contrast to XY, ORTF provides a bit more drama in the stereo field.