Method added to zfile for writing buffer back to the xmldom