- The error is in the OCTFileOpen.m,
- open that file
- set the “handle.path” according to the location where “xml2struct.m” file is located.
Error Using xmlstringinput (line 42)
3 views (last 30 days)
Show older comments
I have a custom MATLAB code that converts files from .oct to .tif with metrics that match what we need when we analyze samples. The code was previously working correctly, but the hard drive on our computer crashed and upon replacing the hard drive and fresh install of Windows 10 and MATLAB 2018b, it is currently giving us the following error:
Error using xmlstringinput (line 42)
File C:\Users\Student\AppData\Local\Temp\OCTData\Header.xml not found
Error in xmlread (line 82)
filename = xmlstringinput(filename,true);
Error in OCTFileOpen (line 27)
handle.xml = xmlread([handle.path, 'Header.xml']);
Error in OCT2Tiff>OCT2TIFF (line 58)
octFile = OCTFileOpen(fname);
Error in OCT2Tiff (line 24)
OCT2TIFF(fnames, foldpath)
Where OCTFileOpen and OCT2Tiff are custom files we use.
When we search for this header file, we find it is in the file path just above OCTData, so basically it is found in "C:\Users\Student\AppData\Local\Temp\Header.xml". It is also located in other spare folders found inside the Temp folder that have complicated characters. When we give that specific folder the Header.xml file, the file deletes itself and then just gives us the error anyway. I can upload the files, but my OCT data is too large to attach, where "OCT2Tiff.m" is the code we run. What is the fix for this? Thanks in advance!
0 Comments
Answers (1)
Anjaneyulu Bairi
on 11 Oct 2023
I understand that you are getting an error: “file not found” while using ‘xmlstringinput()’.
I will suggest you to please follow the below mentioned troubleshooting steps.
I hope it helps you to resolve the query.
0 Comments
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!