xmltools: stabilized XmlWriteStream
xmltools: simplified implementation of XmlWriter and XmlWriteStream