XML Toolbox

版本 1.0.0.0 (224.8 KB) 作者: Marc Molinari
Conversion of MATLAB data types to XML and vice versa.
32.6K 次下载
更新时间 2005/4/20

无许可证

The XML Toolbox converts MATLAB data structures of any level of nesting into an XML string. It also reads most types of XML strings/files and converts these into a Matlab structure.
Six simple functions are provided for this task:
xml_format()
xml_formatany()
xml_parse()
xml_parseany()
xml_load()
xml_save()
and help in xml_help.

This toolbox comes with an extensive pdf manual (35 pages).

Structures like this
>> project.name = 'MyProject';
>> project.id = 1234;
>> project.param.a = 3.1415;
>> project.param.b = 42;

can easily be converted with a command like str=xml_format(project,'off') to
result in:

<project>
..<name>MyProject</name>
..<id>1234</id>
..<param>
....<a>3.1415</a>
....<b>42</b>
..</param>
</project>

引用格式

Marc Molinari (2026). XML Toolbox (https://ww2.mathworks.cn/matlabcentral/fileexchange/4278-xml-toolbox), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Structured Data and XML Documents 的更多信息
版本 已发布 发行说明
1.0.0.0

Correction of function names, xml_formatatt to xml_formatany and same for parser.