North Korean leader Kim Jong-un has pledged to denuclearise the Korean Peninsula during his first meeting with Chinese President Xi Jinping in Beijing, according to Chinas state news agency. Xinhua on Wednesday quoted Kim saying that the issue could be resolved if South Korea and the United States respond to Pyongyangs efforts with goodwill. It is our consistent stand to be committed to denuclearisation on the peninsula, in accordance with the will of late President Kim Il-sung and late General Secretary Kim Jong-il, Kim said, referring to his grandfather and father, according to the statement issued by Chinas foreign ministry. The issue of denuclearisation of the Korean Peninsula can be resolved, if South Korea and the United States respond to our efforts with goodwill, create an atmosphere of peace and stability while taking progressive and synchronous measures for the realisation of peace. Kim was also reported to have reaffirmed his willingness to meet US President Donald Trump. It was the first official mention of the planned event by North Korea. China and North Korea both confirmed that Kim had visited Beijing and met Xi during what Chinas foreign ministry called an unofficial visit to China from Sunday to Wednesday. Xi held talks with Kim at the Great Hall of the People in Beijing, and he and his wife Peng Liyuan hosted a banquet for Kim and his wife Ri Sol-ju, Xinhua said. They also watched an art performance together, according to the news agency. The China visit was Kims first known trip outside North Korea since he assumed power in 2011 and is believed by analysts to be a preparation for upcoming summits with South Korea and the US. North Koreas KCNA news agency made no mention of Kims pledge to denuclearise, or his anticipated meeting with Trump that is planned for some time in May. The White House said the Chinese government contacted them on Tuesday to tell US officials about Kims visit to China. Sarah Huckabee Sanders, White House spokeswoman, said the briefing included a personal message from President Xi to President Trump, which was conveyed to the president. She did not say what that message entailed. Baik Tae-hyun, South Korean unification ministry spokesperson, said the meeting has helped set the right tone for the upcoming talks. I think improvement in the North Korea-China relationship ahead of the inter-Korean summit and US-North Korea summit, will be helpful in solving the problem in the Korean Peninsula, such as denuclearisation and establishment of peace. Agencies