Convert an xml file into a MATLAB structure for easy access to the data.
Wouter Falkena (2023). xml2struct (https://www.mathworks.com/matlabcentral/fileexchange/28518-xml2struct), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired: Meteomatics Weather API Connector, Simulation of XPN models, Download elevations from Google Maps (API key required), xml2struct , with bug fix and added features, acampb311/xml2struct, maxsich/loadSPE, Microscopy Image Browser (MIB), Microscopy Image Browser 2 (MIB2), prowlpush: Prowl Notifications for MATLAB, Freehand Prostate Annotation, colladaParser
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Small bugfix in the CDATA and Comment structure fields.
Speed improvement due to X. Mo and added support for cdata and comments.
The function now replaces element and attribute names containing - by _dash_, . by _dot_ and : by _colon_
Attribute parsing speed increased by 40%
Corrected the uploaded file
Removed the assumption that the filename should have a '.xml' extension
Decreased the processing time for large XML files