Write XML configuration back to XML file