recent writeXML update FIX