Why are we writing the tags to files like this, instead of using an XML library to do it?