XML-converter
XML-based format used for storage of various structural and exchange of information between programs. In some programs, the format used to store configuration files. In the new version of the program to increase its speed, it was decided to use a simplified XML-based format.
Element and attribute names consist only of latin letters, numbers and symbols underscore, dot and minus. The length of the names of not more than 100 characters. VALUE2 in 'does not contain the character'. VALUE3 in "does not contain the character". With this exception VALUE2 and VALUE3 can contain any characters, including the transition to a new line. TEXT may contain nested elements, which are similar transformation. Following the element name and attributes, and after perhaps a few spaces, tabs and new line characters. These characters in the output file is not displayed.
When installing the new version you must convert the configuration files in the new simplified format. Write a program that performs this transformation.
Input
In the input file contains one or more lines of text containing the XML-elements.
Output
In the output file display the converted text in which the XML-elements are written in the new simplified XML-format.