Mercurial > hg > camir-aes2014
comparison core/magnatagatune/xml_write_tags.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e9a9cd732c1e |
---|---|
1 % xmloutput_tags | |
2 | |
3 % Create a sample XML document. | |
4 docNode = com.mathworks.xml.XMLUtils.createDocument... | |
5 ('tags') | |
6 docRootNode = docNode.getDocumentElement; | |
7 for i=1:length(annots_descripts) | |
8 thisElement = docNode.createElement('tagname'); | |
9 thisElement.appendChild... | |
10 (docNode.createTextNode(annots_descripts{i}(1:end))); | |
11 docRootNode.appendChild(thisElement); | |
12 end | |
13 %docNode.appendChild(docNode.createComment('this is a comment')); | |
14 | |
15 % Save the sample XML document. | |
16 xmlFileName = ['test','.xml']; | |
17 xmlwrite(xmlFileName,docRootNode); | |
18 edit(xmlFileName); |