Revert "XML read and write"

This reverts commit cdf390c6bbfb6f21c9d8d1c17a1229f41a602913.