My mistake, I thought a trailing </xml> was required for validity, but after looking it up, I see that it isn't.

Fixed #422