changes to xmlwriter