Gas tank size on 05 XLV

I have a 05 GG XLV and I have been having the strangest issues with my gas tank.

When I fill up my gas tank I can put in a max of 26/27 gallons, and the gas gauge reports that it is full. I can tell its full because it will bubble up the gas fill. I pretty much figured I had a 26 gallon tank and that was it, but now I see on the 06 XLV it has 40 gallons tank. So now I am wondering if I have a 40 gallon tank and the gas gauge is reporting it as empty when it is actually half full????

Can anyone tell me what the actual tank size is for sure?