Nestle is to invest in an infant formula plant in Spain, with an eye on the manufacturing of a product for sale in China.