tinyxml2 wrapper
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
Cita come
Ladislav Dobrovsky (2025). tinyxml2 wrapper (https://it.mathworks.com/matlabcentral/fileexchange/48308-tinyxml2-wrapper), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Structured Data and XML Documents >
Tag
Riconoscimenti
Ispirato da: XML Toolbox
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.7.1 | dependencies and description update |
|
|
| 1.7 | format and parse modes - XML in strings, not files
|
|
|
| 1.5.0.0 | N-D arrays (Peter van den Biggelaar)
|
|
|
| 1.4.0.0 | proper loading of struct arrays without explicit indexes (thx to Peter van den Biggelaar) |
|
|
| 1.3.0.0 | custom format for double and single floating point,
|
|
|
| 1.2.0.0 | typo; performance |
|
|
| 1.1.0.0 | syntax |
|
|
| 1.0.0.0 |
|
