output xml DOM Tree -> MainWindow