China and North Korea agreed "in principle" Thursday that six-nation talks on Pyongyang's nuclear program should be reconvened, official media in both nations said, reporting on an unusual meeting between a top Chinese official and the North's reclusive leader.

China Central Television, in its national evening newscast, also said both the Beijing leadership and Kim Jong Il (search) agreed the concerns of both sides in the nuclear standoff — the United States and North Korea — should be resolved simultaneously.

State television showed Wu Bangguo (search), the second-highest Chinese Communist Party leader and head of his country's legislature, meeting with a smiling Kim in Pyongyang. Wu is on a three-day "goodwill" visit to the North at a pivotal time when China is trying to make sure the six-nation summit reconvenes.

"Both sides agreed in principle that the six-way talks should continue," CCTV's anchorwoman said as footage of the two ran. "China and North Korea support the idea of a peaceful resolution to the North Korean issue through dialogue."

The two nations' official news agencies, KCNA and Xinhua, confirmed the report in short order. KCNA used slightly different language, saying the sides "agreed in principle to pursue the course of the six-way talks."

KCNA said the North "expressed its willingness to take part in the future talks if they provide a process of putting into practice the proposal for a package solution based on the principle of simultaneous actions."

It was not immediately clear how concrete a commitment "in principle" meant. But the North's decision to make such a statement publicly alongside China, an ally it does not want to alienate, suggests that this commitment could stick where previous ones didn't. No timeframe was given for future six-nation talks.

North Korea has previously said that "simultaneous actions" include economic and humanitarian aid from the United States, the opening of diplomatic ties and the building of a nuclear power plant. It also demands a signed nonaggression treaty — something the Bush administration has thus far refused.

In exchange, North Korea has said it would declare its willingness to give up nuclear development, allow nuclear inspections, give up missiles exports and finally dismantle its nuclear weapons facilities.

A spokesman who answered the phone at the press section of China's Foreign Ministry refused comment, saying the visit was still in progress.

The presence in the Chinese delegation of Vice Foreign Minister Wang Yi (search), China's point man on North Korean affairs, lent credence to speculation that there might be motion in the nuclear issue during the trip.

But if recent weeks are any indication, the North's apparent agreement to join the summit again could change quickly.

After the six nations — the two Koreas, China, the United States, Japan and Russia — met for the first time in Beijing in August, the North said it would join them again. However, it backtracked hours after the talks adjourned and has gone back and forth in the weeks since.

CCTV also reported that Kim, who rarely travels by air, had accepted Chinese President Hu Jintao's invitation to visit China again. Kim said he would do so "at his convenience," CCTV said.

Earlier Thursday, China's official Xinhua News Agency quoted Wu as saying that "adherence to dialogue should be the correct direction" to end the standoff — a dispute China has positioned itself to help solve, if not mediate outright.

"We want to hold this round of six-party talks as soon as possible," Foreign Ministry spokeswoman Zhang Qiyue said at a regular briefing in Beijing.

The dispute began a year ago when the United States said North Korea admitted to a secret nuclear program. In the ensuing months, Washington demanded the program be scrapped and Pyongyang refused, saying only the nonaggression treaty and aid could change its mind.

At home, China used its state-controlled propaganda machine Thursday to drive home its long-held point — that dialogue, and not any rash action, will solve the dispute.

"Neighbors work together for peace," the newspaper China Daily said on its front page. Most every Chinese-language newspaper stressed the need for more talks.

China, Pyongyang's most powerful ally, has struggled to balance its duty to its neighbor with what a nuclear-armed North might mean for Chinese security — and the Chinese economy.

Wu, invited by the North, is the highest-level Chinese official to publicly travel to the insular nation since 2001, when then-President Jiang Zemin paid a state visit.

Pyongyang is believed already to have one or two atomic bombs, and recently said it extracted plutonium from 8,000 spent nuclear fuel rods to build more. Two weeks ago, it threatened to test a bomb.