Add saving to XML files in editor