Adding or Creating Elements in an XML File
This is something that took me a while to understand exactly how to accomplish and at first what I did was write the whole XML format in a String and then save it to a file which in turn caused for several issues and it ended up needing a lot of ifs and…