xml2struct , with bug fix and added features

Version 1.0.0.0 (3.17 KB) by CY Y
An improved version of xml2struct that converts xml document into MATLAB structure.
4.9K Downloads
Updated 9 Mar 2017

xml2struct takes either a java xml object, an xml file, or a string in xml format and returns a structure that preserves the tree relationship in the xml document. It is an improved version of another MATLAB file exchange submission : https://www.mathworks.com/matlabcentral/fileexchange/28518-xml2struct .

Specifically, it has following features:
1. Solved the issue that when comment is present, other data will be lost.
2. Fixed the " Undefined function 'toCharArray' for input arguments of type 'double'. " issue.
3. Added support for xml string.

Cite As

CY Y (2024). xml2struct , with bug fix and added features (https://github.com/joe-of-all-trades/xml2struct), GitHub. Retrieved .

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

Inspired by: xml2struct

Inspired: EnergyPlus Co-simulation Toolbox

Community Treasure Hunt

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

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.0.0.0

Fixed the " Undefined function 'toCharArray' for input arguments of type 'double'. " issue.
added tags
Updated description.
updated description
linked to github
Minor changes in code comment

Updated title

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.