wolffd@0: % xmloutput_tags wolffd@0: wolffd@0: % Create a sample XML document. wolffd@0: docNode = com.mathworks.xml.XMLUtils.createDocument... wolffd@0: ('tags') wolffd@0: docRootNode = docNode.getDocumentElement; wolffd@0: for i=1:length(annots_descripts) wolffd@0: thisElement = docNode.createElement('tagname'); wolffd@0: thisElement.appendChild... wolffd@0: (docNode.createTextNode(annots_descripts{i}(1:end))); wolffd@0: docRootNode.appendChild(thisElement); wolffd@0: end wolffd@0: %docNode.appendChild(docNode.createComment('this is a comment')); wolffd@0: wolffd@0: % Save the sample XML document. wolffd@0: xmlFileName = ['test','.xml']; wolffd@0: xmlwrite(xmlFileName,docRootNode); wolffd@0: edit(xmlFileName);