external xmlwriter