I use the following code to create an XML-file in the directory "C:\my folder" with a space in its name:
xmlwrite('C:\my folder\example.xml',docNode);
But XMLWRITE stores example.xml into a new directory named "C:\my%20folder".
MATLAB
xmlwrite('C:\my folder\example.xml',docNode);
Best Answer