Version 1 of XML writer