Theoretically, an XLR cable is the same as a microphone cable. However, a lot of audiophile equipment and consumer equipment in general are not properly grounded. In this case, leaving the shield hanging can sometimes be desirable in order to reduce the hum. The issue becomes even worse when pro electronics are mixed with consumer electronics. There are many configurations that an XLR cable can be made in.
But if everything was properly made, then it would be pin1-pin1, pin2-pin2, and pin3-pin3.