MATLAB struct 2 XML object and vice versa Conversion

バージョン 1.0.2 (37.5 KB) 作成者: Joshua Malina
struct2xml and xml2struct convertors preserving fields data types.
ダウンロード: 66
更新 2024/6/21

ライセンスの表示

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
This functions were inspired by similar MATLAB file exchange submissions (by Wouter Falkena and CY Y Chao_Yuan Yeh) :

引用

Joshua Malina (2025). MATLAB struct 2 XML object and vice versa Conversion (https://jp.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
カテゴリ
Help Center および MATLAB AnswersStructured Data and XML Documents についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.2

vector dimension reversal fixed 21/6/24

1.0.1

Required MathWorks Products added

1.0.0