Error in xml_read (line 132) Node = DOMnode.getFirstChild; (Solved)

Provide a complete, user friendly and highly configurable tool to automatically process experimental motion data from different laboratories for their use into neuromusculoskeletal software.
POST REPLY
User avatar
Julian Atkinson
Posts: 52
Joined: Thu Feb 25, 2016 12:39 am

Error in xml_read (line 132) Node = DOMnode.getFirstChild; (Solved)

Post by Julian Atkinson » Tue Oct 11, 2016 12:29 am

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!

User avatar
Julian Atkinson
Posts: 52
Joined: Thu Feb 25, 2016 12:39 am

Re: Error in xml_read (line 132) Node = DOMnode.getFirstChild; (Solved)

Post by Julian Atkinson » Tue Oct 11, 2016 7:30 am

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');

User avatar
Xinyu Liu
Posts: 1
Joined: Fri Sep 23, 2016 4:49 am

Re: Error in xml_read (line 132) Node = DOMnode.getFirstChild; (Solved)

Post by Xinyu Liu » Wed Nov 02, 2016 6:26 am

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!

User avatar
Julian Atkinson
Posts: 52
Joined: Thu Feb 25, 2016 12:39 am

Re: Error in xml_read (line 132) Node = DOMnode.getFirstChild; (Solved)

Post by Julian Atkinson » Mon Nov 07, 2016 2:25 am

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

User avatar
Lijo Varughese Chacko
Posts: 1
Joined: Sat Dec 06, 2014 5:01 pm

Re: Error in xml_read (line 132) Node = DOMnode.getFirstChild; (Solved)

Post by Lijo Varughese Chacko » Fri Dec 02, 2016 10:58 am

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?

User avatar
saaveethya sivakumar
Posts: 1
Joined: Wed Jan 25, 2017 7:43 pm

Re: Error in xml_read (line 132) Node = DOMnode.getFirstChild; (Solved)

Post by saaveethya sivakumar » Mon Feb 27, 2017 2:31 am

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!

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');

User avatar
Mariam Roy
Posts: 1
Joined: Fri Mar 01, 2019 4:26 am

Re: Error in xml_read (line 132) Node = DOMnode.getFirstChild; (Solved)

Post by Mariam Roy » Wed Aug 28, 2019 6:01 am

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.

User avatar
dongyue sun
Posts: 1
Joined: Fri Apr 07, 2023 7:10 pm

Re: Error in xml_read (line 132) Node = DOMnode.getFirstChild; (Solved)

Post by dongyue sun » Sat Apr 27, 2024 8:21 pm

mariamroy21 wrote:
Wed Aug 28, 2019 6:01 am
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.
Can you tell me the detail?please ! bow to yoou!!!

POST REPLY