Fixed editing to save as text/xml