xml_writeOSIM.m

Provides tools for using different aspects of Opensim within the Matlab environment, including command line pipelines as well as accessing the Opensim API directly.
POST REPLY
User avatar
Maxime Bourgain
Posts: 9
Joined: Mon Mar 09, 2015 8:17 am

xml_writeOSIM.m

Post by Maxime Bourgain » Thu Jan 21, 2016 8:09 am

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

User avatar
Maxime Bourgain
Posts: 9
Joined: Mon Mar 09, 2015 8:17 am

Re: xml_writeOSIM.m

Post by Maxime Bourgain » Fri Jan 22, 2016 5:43 am

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

POST REPLY