问题
I need convert an Simulink file (.mdl) to an XML file, after any searches i'm not found any content to help me with this problem.
You'd know some way or ready solution for this in Java?
回答1:
Starting in R2008b, you can export an .mdl file to an .xml file using save_system,
>> save_system('model.mdl', 'model_xml.xml','ExportToXML', true);
回答2:
I know of no easy solution.
However, there are a couple of libraries in Java that apparently can parse simulink files. They should be sufficient to give you an in-memory representation, and you could then use an XML binding to produce passable XML.
来源:https://stackoverflow.com/questions/11006599/how-convert-simulink-files-to-xml