MATLAB parse and store XML with XSD

若如初见. 提交于 2020-01-16 14:30:42

问题


I have an XSD for an XML file, which I was hoping would make it easier to parse and store the information in the XML. However, I am unable to find anything on the Mathworks website about such a thing. Does anyone know of a way to use my XSD to read the XML file (with MATLAB, if possible) and store the information contained in the XML file? Alternatively, is there some other way to do this (ie without MATLAB)?


回答1:


Look, I've tried multiple options to read/write XML files. And believe me when I tell you, all of them are not as good as you might think!

The best solution I've reached and used finally, is to use JAXB to create your parser java classes from XSD, then include your java package into Matlab and use it.




回答2:


See this: http://www.artefact.tk/software/matlab/xml/

That should help you!



来源:https://stackoverflow.com/questions/13963236/matlab-parse-and-store-xml-with-xsd

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!