You are given an XML document which consists of a root element and its several child elements. Each of these child elements stores some text inside. Write a program that iterates over the child elements and prints text that they contain.
The XML document is given in input in one string.