The leaders of China and India stressed the importance of close ties in talks Saturday, against the background of their rivalry for leadership in Asia and the potential for cooperation on economic and security matters.