Short question: Creating a XML file
1 回表示 (過去 30 日間)
古いコメントを表示
Hi
I would like to know if my general approach to creating XML files is correct:
docNode = com.mathworks.xml.XMLUtils.createDocument('root_element');
cell = docNode.getDocumentElement;
cell.setAttribute('id','12345')
child = docNode.createElement('successor');
cell.appendChild(child)
First I creat the document, then I identify the root, then creat an element, and this element I append to the root. If this should be correct, where would I find the generated XML?
Thanks
1 件のコメント
Image Analyst
2013 年 1 月 15 日
編集済み: Image Analyst
2013 年 1 月 15 日
Don't use cell - it's a built in function. Use another name, like myTree or something like that.
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!