Transfer contents in an XML file into certain format and output to a .txt file.
The text.xml included is an example. And the text.txt is the output for the example.
Feel free to edit in order to satisfy your own format.
Input file is not restricted to xml files.