the only one you have that export animated x files is blender. Some tutorials here.
https://forum.game-guru.com/thread/208184
C4D will export animated X files, but you need to setup the scene proper and model to real scale.
Maya is a wonderful program, but has not animated xfile export capability at all. Not sure if someone got a plugin going for static x files.
You rig models for this program with straight bones only, no controller or fancy movie stuff for characters. No procedural or morphs are allowed. everything must be UV mapped and have a texture, not just a materiel.
Rig with any bones you want, limit is 63 per object, 3 bone max per vertices.
If it will record a keyframe, you should be able to export it in Xfile format and it should work.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit