Thailand and Cambodia are participating in two days of talks in China aimed at ending weeks of border fighting.