During Saturday's summit, Moon and Xi also agreed to quickly normalise bilateral exchanges in all sectors, reiterating an agreement announced last month to end a year-long standoff over the deployment of a United States anti-missile system.
The key to understanding the deal lies with Foreign Affairs Minister Kang Kyung-wha's answer to a lawmaker's question at a parliamentary hearing the previous day.
"The two leaders praised the Seoul-Beijing agreement of October 31. and put bilateral exchanges and cooperation on the normal track in all areas", said presidential spokesman Yoon Young-chan. The lawmaker who asked the relevant question is known to favor China and visited the country shortly before the hearing.
Moon invited Xi to the Pyeongchang Winter Olympics early next year.
The two leaders held their second summit on the sidelines of the Asia-Pacific Economic Cooperation (APEC) leaders' meeting, both expressing the need to manage the security situation on the Korean Peninsula and for the North Korean nuclear issue to ultimately be resolved through dialogue, according to the Blue House.
Labour tables urgent question over Briton jailed in Iran, Nazanin Zaghari-Ratcliffe
Gove's answers are likely to create yet more ammunition for the government's critics over its handling of the case. They said she had been given a mammogram by the prison's gynaecologist, which gave an inconclusive result.
Officials are seeking to resume an annual summit between China, Japan and South Korea, which was scheduled for July but postponed as Beijing and Tokyo locked horns over maritime sovereignty in the East China Sea, and China and South Korea squabbled over THAAD.
South Korea attaches importance to China's concern on the THAAD issue, and has no intention to harm China's interests of strategic security, he said. Conservatives have lambasted the deal, with the largest opposition Liberty Korea Party calling it the product of "humiliating" diplomacy and the Chosun Ilbo newspaper saying the government "capitulated" to Beijing.
"There are signs of cooperation and improving relations between China, South Korea and Japan". Some military experts worry that China will interpret the agreement not to form a "military alliance" as extending to military cooperation in general and seek to drive a wedge between Seoul and its partners. Taking China into consideration could widen the gap between Seoul and the more hardline Tokyo and Washington.
Moon said to Xi during the meeting, "Korea-China relations briefly faced difficulty, but on the other hand, it was an opportunity to reconfirm how valuable we are to one another".
With tensions still running high on the Korean Peninsula, the "three nots" could rankle the Trump administration. "Watching your emphasis on achieving xiaokang society, where all the people enjoy comfort and prosperity, I was able to feel the spirit of a leader who deeply thinks about the people", Moon said.