Make the XML file saving actually work. Oops.