Chinese, Indian militaries vow cooperation: Xinhua