SM_struct2xml converts very general Scalar MATLAB structure to Matlab XML Doc Object Or Alternatively, to XML File.
SM_xml2struct can convert both of them, back to the MATLAB structure.
Specifically, it has following features:
1. Structure hierarchy is preserved in the tree structure of the xml document.
2. The type of structure fields' data is not changed. (Numeric data is not converted to text)
3. Ideally, Output structure from SM_xml2struct(xmlIn) should be identical to the Input structure of xmlIn = SM_struct2xml(structIn).
These functions were written in relative haste, so they are far from perfect. I would be grateful for any Remarks / Corrections / Suggestions / Improvements. My Contact Email: joshma@rafael.co.il
Categories
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Structured Data and XML Documents
This functions were inspired by similar MATLAB file exchange submissions (by Wouter Falkena and CY Y Chao_Yuan Yeh) :
引用格式
Joshua Malina (2024). MATLAB struct 2 XML object and vice versa Conversion (https://www.mathworks.com/matlabcentral/fileexchange/117945-matlab-struct-2-xml-object-and-vice-versa-conversion), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2020b
兼容 R2019a 到 R2023a 的版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Structured Data and XML Documents >
在 Help Center 和 MATLAB Answers 中查找有关 Structured Data and XML Documents 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!