Adaptation SaveWriter to read xml files