Modified to see if xml export works. XML writer needs to have some
whitespace as it writes everything in one line. Unless if the one line
is needed for a smaller file size, this needs whitespace for debugging
xml reading.