Added all the writeXML and writeDeleteXML functions. I had to guess on a
few of the tags so they might be wrong.