Added function to adjust the whitespace for our XML

This makes the output prettier and also makes it easier to test things
since the output XML is more well-defined.