I wouldn't be surprised if it could be the xanaflex...after all, it is a muscle relaxant, and the stomach has lots of bands of muscles. Did you look it up on the internet to see if it is a side effect?
I wonder if nausea is a sxs too...but you had diarrhea too, which would indicate a GI bug...
sure hope you feel better soon, hon...