It's probably a good thing to add the space for readability, but according to this StackOverflow post, the space before slash is a bit of an old thing to do.
Could be done with a replace ("/>", " />") operation after the XML is generated, I guess.. I don't think I'd want to burden the XML parser with generating that.