XML writer extended