How sometimes plants grow in cotton or buildings although they do not get nutrients which are present in soil which they need for their growth?
Plants which grow on cotton or buildings derives its moisture and nutrients from the air and rain and sometimes from debris accumulating around buildings. Such plants derive only support from their host and not nutrition. They do photosynthesis to obtain nutrition.