xml2struct
Being a C++ mex function, it is very fast compared to the built-in xmlread or any other pure matlab implementation. It can directly read n-dimensional arrays.
For details, see https://github.com/jhrmnn/xml2struct
Cite As
Jan Hermann (2026). xml2struct (https://github.com/jhrmnn/xml2struct/releases/tag/1.7.1), GitHub. 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: JuGEx - Julich-Brain Gene Expression, maxsich/loadSPE
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.7.1 | See release notes for this release on GitHub: https://github.com/jhrmnn/xml2struct/releases/tag/1.7.1 |
||
| 1.7.0.0 | Removed dependency on Boost, refactored to C++11 |
|
|
| 1.6.0.0 | Rapidxml is now downloaded during build |
|
|
| 1.5.0.0 | rewrote the array parsing, no specification provided, see example XML file |
|
|
| 1.4.0.0 | tags updated |
|
|
| 1.0.0.0 |
|
||
| 0.9.0.0 | See release notes for this release on GitHub: https://github.com/jhrmnn/xml2struct/releases/tag/0.9.0 |
