File Exchange

image thumbnail


version 1.7.1 (11.2 KB) by Jan Hermann
MEX function converts an XML file into a MATLAB structure


Updated 18 Feb 2021

From GitHub

View Version History

View license on GitHub

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

Cite As

Jan Hermann (2021). xml2struct (, GitHub. Retrieved .

Comments and Ratings (5)

shunchao wu

this commit works with vs2010 and no boost needed. good.

Jan Hermann

sorry, I have never worked with matlab on windows

Eliyahu Sivaks

hi, can you please provide a Windows compiling instructions?

Jan Hermann

thanks, updated

christie harper

should comment that is is only for *nix distributions that have boost installed

MATLAB Release Compatibility
Created with R2014a
Compatible with R2014a to R2020b
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!