XML Toolbox

Conversion of MATLAB data types to XML and vice versa.


Updated 20 Apr 2005

No License

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:
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:


Cite As

Marc Molinari (2023). XML Toolbox (https://www.mathworks.com/matlabcentral/fileexchange/4278-xml-toolbox), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

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