struct2xml( s, varargin )
Version 1.0.0.0 (9.62 KB) by
Jacob Lynch August
Import XML file as MATLAB struct.
Based on the work of Walter Faulkena, this submission includes logic to automatically convert arrays of structures into cells of structures, and to recursively remove empty Text fields that can cause xmlwrite to error.
See https://www.mathworks.com/matlabcentral/fileexchange/28639-struct2xml for W. Faulkena's original work.
Cite As
Jacob Lynch August (2024). struct2xml( s, varargin ) (https://www.mathworks.com/matlabcentral/fileexchange/64138-struct2xml-s-varargin), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2016b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Structured Data and XML Documents >
Find more on Structured Data and XML Documents in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: struct2xml
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.0.0.0 |