Xi is the first Chinese leader to visit the reclusive country in 14 years amid renewed tension on the Korean Peninsula.