President Xi Jinping has purged his top military officials, raising doubts about the China's readiness for war.