Matlab 自带了xmlread,xmlwrite 等三个与xml 相关的函数,但是使用起来仍然不方便
在Matlab 主页上有个xml_io_tools 的工具,很不错,简单易用,一个小时基本就可以掌握了
简单记录一下笔记:1、Pref
XmlEngine = 'Xerces'Same operation using Apache Xerces XML engine
But root element namewas passed as variable2、"Pref
StructItem" flag in "xml_write" true false保存结构true 自动加入false 保持原样read 时结果会保持一致的存在一个潜在的问题,这是由系统决定,注意避免即可3、"Pref
CellItem" flag in "xml_write" true false保持 cell与2 有相同做法注意 cellitem 可以控制 cell/struct 结构储存4、"Pref
NoCells" flag in "xml_read"false 读出结构体true 将结构体进行混合5、"Pref
ItemName" flag in "xml_write"控制自动加入的'item'6、"Pref
ItemName" flag in "xml_read"读取自动控制6、"Pref
Str2Num" flag in xml_read"Pref
Str2Num = false" to keep all the fields in string format机构不肯能完全保证一致:WARNINGNotice that both settings will produce the same output for "num1"and"num2" an