xml2struct

MEX function converts an XML file into a MATLAB structure

https://github.com/jhrmnn/xml2struct

You are now following this Submission

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 .

General Information

MATLAB Release Compatibility

  • Compatible with R2014a to R2020b

Platform Compatibility

  • Windows
  • macOS
  • Linux

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes Action
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

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.