The leaders of North Korea and Russia will attend China's military parade next week - a win for Xi.