Change closeTag() to private and add new method close()

1) changed **closeTag()** to private
**closeTag()** closed XML with incorrect formatting. Preferably use **up()** or new method **close()** for correct closing tags. It's not a bug, but generated XML look not so pretty.
2) added new method **close()**
He can be used to quick add close tags in very big XML.