developing new version of XmlWriter