xml Error when renaming a File or Folder in a Project

20 views (last 30 days)
Brad
Brad on 13 Feb 2026 at 0:18
Answered: Tridib on 16 Feb 2026 at 7:32
When renaming a folder or a file in the project pane for an opened project, I receive the following error:
The exact same error is yielded for any renaming attempt of any file or folder in the project, but only in this specific project

Answers (1)

Tridib
Tridib 16 minutes ago
Dear @Brad,
This issue usually happens when MATLAB’s preferences or path become corrupted. You can fix it by clearing the MATLAB preferences and resetting the path. Follow the steps below based on your operating system.
Windows
1. Go to your Application Data folder:
Windows 2000/XP:
C:\Documents and Settings\<username>\Application Data\
Windows Vista and later:
C:\Users\<username>\AppData\Roaming
Note: This folder is hidden by default.
2. Open the MathWorks\MATLAB folder inside Application Data and delete the folder for your MATLAB release (e.g., R2024b).
Do not delete any folder ending with “_licenses”.
3. Restart MATLAB. A new preferences folder will be created automatically.
Linux / Unix / macOS
1. Open a terminal and run:
cd ~/.matlab
2. Delete the folder for your MATLAB version. For example:
rm -rf R2024b
3. Restart MATLAB, and it will rebuild the preferences.
If the issue continues, reset MATLAB’s path. Run the following commands inside MATLAB:
restoredefaultpath
savepath
rehash toolboxcache
After running these, restart MATLAB so the changes take effect.
Hope this helps!

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!