File Exchange

image thumbnail

tinyxml2 wrapper

version 1.7.1 (45.1 KB) by Ladislav Dobrovsky
tinyxml2_wrap - XML serializing/deserializing of MATLAB arrays

2.6K Downloads

Updated 08 Mar 2019

View License

can handle:
- real and complex matrices: scalars, 1D, 2D, N-D arrays
- struct arrays
- cell arrays
- function handles
- nesting of structures/cells
NOT supported: objects, xml attributes (are used for types and sizes)
usage:
tinyxml2_wrap('save', filename, variable)
tinyxml2_wrap('save', filename, variable, exportOptions)
variable = tinyxml2_wrap('load', filename)
... parse, format, version modes: see help
compile with:
mex tinyxml2_wrap.cpp tinyxml2.cpp
performance:
on average up to 10x speedup over using XML Toolbox by Marc Molinari

Cite As

Ladislav Dobrovsky (2021). tinyxml2 wrapper (https://www.mathworks.com/matlabcentral/fileexchange/48308-tinyxml2-wrapper), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: XML Toolbox

Community Treasure Hunt

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

Start Hunting!