Rival Palestinian groups Hamas and Fatah have expressed the will to seek reconciliation through dialogue at unity talks in Beijing, China's foreign ministry said on Tuesday.