When matter is heated to very high temperatures, it turns into a plasma. Such plasma can emit X-rays.