Add Xml generator new functionality.

Add indents.
Separete XmlWriter from org.w3c.dom.