eolymp
bolt
Try our new interface for solving problems
Problems

XML-converter

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. \includegraphics{https://static.e-olymp.com/content/75/75fe8908010b494836b045877b7d0729cb111c4a.jpg} 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 \textbf{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. \InputFile In the input file contains one or more lines of text containing the XML-elements. \OutputFile In the output file display the converted text in which the XML-elements are written in the new simplified XML-format. \includegraphics{https://static.e-olymp.com/content/99/99a415bebd64b322c78d10b483a2bdf0a1ff77cb.jpg}
Time limit 1 second
Memory limit 64 MiB
Input example #1
<book genre="Science Fiction">
<autor>Asimov</autor><title>Foundation</title>
<info
  publisher="Booble's doc"
  year='1975' />
</book>
Output example #1
<book><genre>Science Fiction</genre>
<autor>Asimov</autor><title>Foundation</title>
<info><publisher>Booble's doc</publisher><year>1975</year></info>
</book>