struct2xml

Convert a MATLAB structure into a XML file.

Download
Download

You are now following this Submission

Cite As

Wouter Falkena (2026). struct2xml (https://www.mathworks.com/matlabcentral/fileexchange/28639-struct2xml), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.7.0

The function now replaces element and attribute names containing _dash_ by -, _dot_ by . and _colon_ by :

Download
1.6.0

Bugfix in val2str subfunction

Download
1.5.0

Removed the for-loop in the val2str subfunction, thereby increasing the speed drastically.

Download
1.4.0

Increased the speed of the str2val subfunction by removing the for-loop and making use of the suggestion of T. Lohuis.

Download
1.3.0

Improved processing speed for multiline strings (or arrays) by 160%.

Download
1.2.0

Added the on-screen output functionality suggested by Philipp Orth

Download
1.1.0

Added a warning for ill-formatted Attributes

Download
1.0.0

Download