Publish generates an error in m2mxdom
조회 수: 2 (최근 30일)
이전 댓글 표시
Publish comes up with a strange response. I've looked for answers, and the bug is reported to have been squashed in 2011b, but I have 2012b and it is still alive and kicking. I have the following code snippet (defining 'publish_test' as publish_test.m before running publish):
>> type publish_test
function publish_test
%%publish test
end
>> publish('publish_test')
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);
I get the following output:
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);
Any thoughts or a different bug report?
Thanks.
Doug
댓글 수: 0
답변 (1개)
Aniket
2025년 6월 11일
This issue happens if you have a third party toolbox installed in a directory named "matlab". You can check that by running below command in the MATLAB command window
v = ver('matlab')
If this returns structure array, rename the directory for the other "matlab" and update your matlabpath accordingly by running below command:
restoredefaultpath;
rehash toolboxcache;
savepath
This should resolve the issue!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!