I seem to be having this problem with the xml_read file.
Undefined function or variable 'DOMnode'.
Error in xml_read (line 132)
Node = DOMnode.getFirstChild;
I only get it with reading the laboratories file, and not the Acquisition file. This includes with the existing laboratories file.
***Update
It appears that the problem is with this line:
DOMnode = xmlread(xmlfile);
It does not proceed past this line of code.
Thank you for your help!
Error in xml_read (line 132) Node = DOMnode.getFirstChild; (Solved)
- Julian Atkinson
- Posts: 52
- Joined: Thu Feb 25, 2016 12:39 am
- Julian Atkinson
- Posts: 52
- Joined: Thu Feb 25, 2016 12:39 am
Re: Error in xml_read (line 132) Node = DOMnode.getFirstChild; (Solved)
I have solved my problem. It had to do with file directories.
If you are experiencing the same problem contact me for more details.
Also, I noticed in the code that the following function is used:
DataSetPath = uigetdir('Select your dataset folder');
However when the code is run the top of the dialog box message is "Select dialog box to open". I fixed this by changing the code to the following:
DataSetPath = uigetdir('','Select your dataset folder');
If you are experiencing the same problem contact me for more details.
Also, I noticed in the code that the following function is used:
DataSetPath = uigetdir('Select your dataset folder');
However when the code is run the top of the dialog box message is "Select dialog box to open". I fixed this by changing the code to the following:
DataSetPath = uigetdir('','Select your dataset folder');
Re: Error in xml_read (line 132) Node = DOMnode.getFirstChild; (Solved)
HI,
I also have the same problem like you. Here are my code errors.
??? Undefined function or variable "DOMnode".
Error in ==> xml_read at 132
Node = DOMnode.getFirstChild;
Error in ==> ElaborationInterface at 65
acquisitionInfo=xml_read([foldersPath.inputData filesep 'acquisition.xml']);
can you help me with that?
Thank you!
I also have the same problem like you. Here are my code errors.
??? Undefined function or variable "DOMnode".
Error in ==> xml_read at 132
Node = DOMnode.getFirstChild;
Error in ==> ElaborationInterface at 65
acquisitionInfo=xml_read([foldersPath.inputData filesep 'acquisition.xml']);
can you help me with that?
Thank you!
- Julian Atkinson
- Posts: 52
- Joined: Thu Feb 25, 2016 12:39 am
Re: Error in xml_read (line 132) Node = DOMnode.getFirstChild; (Solved)
Hi Xinyu
So the problem has to do with where it is trying to access the files from.
I added this piece of code to fix it:
In elaborationInterface.xml:
sharedDir = uigetdir('','Select your MOtoNMS shared directory'); %Added by Julian
addSharedPath(sharedDir) %Edited by Julian
In addSharedPath.xml:
function []=addSharedPath(sharedDir)
cd(sharedDir) %Edited by Julian
I hope this helps.
Regards,
Julian
So the problem has to do with where it is trying to access the files from.
I added this piece of code to fix it:
In elaborationInterface.xml:
sharedDir = uigetdir('','Select your MOtoNMS shared directory'); %Added by Julian
addSharedPath(sharedDir) %Edited by Julian
In addSharedPath.xml:
function []=addSharedPath(sharedDir)
cd(sharedDir) %Edited by Julian
I hope this helps.
Regards,
Julian
- Lijo Varughese Chacko
- Posts: 1
- Joined: Sat Dec 06, 2014 5:01 pm
Re: Error in xml_read (line 132) Node = DOMnode.getFirstChild; (Solved)
Hi Julian,
I also face the same problem. I am getting the following error:
Undefined function or variable 'DOMnode'.
Error in xml_read (line 132)
Node = DOMnode.getFirstChild;
Error in AcquisitionInterface (line 91)
Laboratory=xml_read([laboratoryPath laboratoryName],Pref);
Error in mainAcquisitionInterface (line 51)
AcquisitionInterface();
I couldn't find the function uigetdir in the xml_read file. Could you please help me to solve this problem?
I also face the same problem. I am getting the following error:
Undefined function or variable 'DOMnode'.
Error in xml_read (line 132)
Node = DOMnode.getFirstChild;
Error in AcquisitionInterface (line 91)
Laboratory=xml_read([laboratoryPath laboratoryName],Pref);
Error in mainAcquisitionInterface (line 51)
AcquisitionInterface();
I couldn't find the function uigetdir in the xml_read file. Could you please help me to solve this problem?
- saaveethya sivakumar
- Posts: 1
- Joined: Wed Jan 25, 2017 7:43 pm
Re: Error in xml_read (line 132) Node = DOMnode.getFirstChild; (Solved)
Hi Julian,
I am getting the same error when I try to input the laboratory file. Please advice me how to solve this issue.
Many Thanks!
I am getting the same error when I try to input the laboratory file. Please advice me how to solve this issue.
Many Thanks!
julian_atkinson wrote:I have solved my problem. It had to do with file directories.
If you are experiencing the same problem contact me for more details.
Also, I noticed in the code that the following function is used:
DataSetPath = uigetdir('Select your dataset folder');
However when the code is run the top of the dialog box message is "Select dialog box to open". I fixed this by changing the code to the following:
DataSetPath = uigetdir('','Select your dataset folder');
- Mariam Roy
- Posts: 1
- Joined: Fri Mar 01, 2019 4:26 am
Re: Error in xml_read (line 132) Node = DOMnode.getFirstChild; (Solved)
I fixed it by changing the location of the laboratory file to ..\MOtoNMS v2.2\SetupFiles\AcquisitionInterface\Laboratories. Similarly, changed the location of all the other setup files for the acquitionInterface under AcquisitionInterface folder.
- dongyue sun
- Posts: 1
- Joined: Fri Apr 07, 2023 7:10 pm
Re: Error in xml_read (line 132) Node = DOMnode.getFirstChild; (Solved)
Can you tell me the detail?please ! bow to yoou!!!mariamroy21 wrote: ↑Wed Aug 28, 2019 6:01 amI fixed it by changing the location of the laboratory file to ..\MOtoNMS v2.2\SetupFiles\AcquisitionInterface\Laboratories. Similarly, changed the location of all the other setup files for the acquitionInterface under AcquisitionInterface folder.