approaching static compilation of XmlWriter