XML Toolbox
Aucune licence
The XML Toolbox converts MATLAB data structures of any level of nesting into an XML string. It also reads most types of XML strings/files and converts these into a Matlab structure.
Six simple functions are provided for this task:
xml_format()
xml_formatany()
xml_parse()
xml_parseany()
xml_load()
xml_save()
and help in xml_help.
This toolbox comes with an extensive pdf manual (35 pages).
Structures like this
>> project.name = 'MyProject';
>> project.id = 1234;
>> project.param.a = 3.1415;
>> project.param.b = 42;
can easily be converted with a command like str=xml_format(project,'off') to
result in:
<project>
..<name>MyProject</name>
..<id>1234</id>
..<param>
....<a>3.1415</a>
....<b>42</b>
..</param>
</project>
Citation pour cette source
Marc Molinari (2024). XML Toolbox (https://www.mathworks.com/matlabcentral/fileexchange/4278-xml-toolbox), MATLAB Central File Exchange. Récupéré le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Structured Data and XML Documents >
Tags
Remerciements
A inspiré : tinyxml2 wrapper, generateXML, Nike+ Public API/web interface in Matlab
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
xml_toolbox/
xml_toolbox/tests/
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.0.0 | Correction of function names, xml_formatatt to xml_formatany and same for parser. |