Page 1 of 1

xml_writeOSIM.m

Posted: Thu Jan 21, 2016 8:09 am
by maximebourgain
Hi everyone

I am modifying an OpenSim model through Matlab pipeline.
So I read the existing model, change some information in the structure (basically the relative locations of bodies,...) and I would like to write the new xml.

However, the xml_writeOSIM is not working...
I am using Matlab R2014b and OpenSim 3.3.
Has anyone faced this problem before?

Apparently the problem may come from the Xerces XML engine...

Thank you for any help / suggestion

Re: xml_writeOSIM.m

Posted: Fri Jan 22, 2016 5:43 am
by maximebourgain
Apparently, there is a problem with the matlab function in the 2014b version.

That problem can be solved by changing the xmlwrite_xerces code by simply changing
set(objOutputFormat,'Indenting','on');
by
set(objOutputFormat,'Indenting',1);