XLR was (and is) a connector series name used by Cannon. (Now ITT Cannon.) Although enmeshed in the mists of time, the original connector was the X series, which was reworked, a latch added (the L) and introduced as a pro audio connector. Later it formed the base of the AES standard. The XLR series is available with from 2 to 7 pins, with the pins dropping in size as the number increases in the shell. The XLR connectors are physically compatible with Cannon's XLA, XLB, XLB2, XLG, XLM range of connectors (although not all ranges include all pin numbers.) Probably most users of these connectors call them XLR, even though they aren't. Eventually other manufacturers were able to make the connectors, and XLR became a generic term as well as a Cannon model designator. However XLR remains a Cannon name.
There are other ideas about what XLR means. eXtra Low Resistance, X(Ground) Live Return, and so on.
3-Pin Connectors
Pin 1 Ground (Shield, screen, etc.)
Pin 2 Positive (Signal, Hot, etc.)
Pin 3 Negative (Return, Common, etc.)
5-Pin Connectors
Pin 1 Ground
Pin 2 Left Positive
Pin 3 Left Negative
Pin 4 Right Positive
Pin 5 Right Negative