China is actually a very good example, you're just looking at the wrong industry.
Both America and China industrialized by misappropriating trade secrets from the reigning technical powers of the time (Britain and America, respectively) and then bringing that knowledge home where it could be employed by workers who were willing to work for less. The birthplace of the American industrial revolution are the textile mills at Waltham and later Lowell, MA. Francis Cabot Lowell spent 2 years memorizing how British power mills worked, and then came back to America with all that knowledge in his head. He then copied the design of that mill on the banks of the Charles River, and American industry was born.
China's manufacturing similarly depends upon transfer of knowledge from developed to developing nations, though in this case the transfer is largely voluntary, with American firms setting up factories in China. However, people then leave those factories and set up their own firms, using the trade secrets they gained while working at foreign multinationals. Software is the wrong industry to look at - think in terms of textiles or cars.