This example just prints tag and it's attributes in xml file. But this example intended for the scenario, if the attributes have the "<" or" >" characters inside of the string.