Matlab errors when attempting to publish
14 views (last 30 days)
Show older comments
So i get the following error when trying to publish (regardless of settings, html, pdf, etc)
I'm using it on a mac, 2013b
No method 'createTextNode' with matching signature found for class
'org.apache.xerces.dom.DocumentImpl'.
Error in m2mxdom>createDom (line 53)
newTextNode = dom.createTextNode(matlabVersion.Version);
Error in m2mxdom (line 32)
dom = createDom;
Error in publish (line 143)
[dom,cellBoundaries] = m2mxdom(code);
Error in mdbpublish (line 56)
outputPath = publish(file, options);
Error using open (line 69)
NAME must contain a single string.
0 Comments
Answers (1)
Sean de Wolski
on 17 Jan 2014
This error can be seen if:
v = ver('matlab')
Returns a structure array instead of a single structure. This can happen if you have a third party toolbox installed in a directory named "matlab". In that case rename the directory and update your matlabpath accordingly.
7 Comments
Sean de Wolski
on 30 Jan 2014
You could just try the big hammer approach which I would expect to work:
restoredefaultpath;
rehash toolboxcache;
savepath
If that does not work, contact technical support and point them to this question.
Daniel Shanks
on 31 Jan 2014
Hi, I have the same error when I try to publish code. I did some of the steps you mentioned above and determined that the MATLAB support package for Arduino is returned along with the matlab version when ver('matlab') is called. I tried your 'big hammer approach' and it did not work. Any advice on how to remove this without causing other damage?? Also my help window is formatted incorrectly, which I believe is a consequence of the publish function not running.
Thanks!
See Also
Categories
Find more on Search Path 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!