This function converts a MATLAB structure into a XML file.
Cite As
Wouter Falkena (2024). struct2xml (https://www.mathworks.com/matlabcentral/fileexchange/28639-struct2xml), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Structured Data and XML Documents >
Tags
Acknowledgements
Inspired: struct2xml with bug fix, struct2xml( s, varargin ), Microscopy Image Browser (MIB), Microscopy Image Browser 2 (MIB2)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.7.0.0 | The function now replaces element and attribute names containing _dash_ by -, _dot_ by . and _colon_ by : |
||
1.6.0.0 | Bugfix in val2str subfunction |
||
1.5.0.0 | Removed the for-loop in the val2str subfunction, thereby increasing the speed drastically. |
||
1.4.0.0 | Increased the speed of the str2val subfunction by removing the for-loop and making use of the suggestion of T. Lohuis. |
||
1.3.0.0 | Improved processing speed for multiline strings (or arrays) by 160%. |
||
1.2.0.0 | Added the on-screen output functionality suggested by Philipp Orth |
||
1.1.0.0 | Added a warning for ill-formatted Attributes |
||
1.0.0.0 |