Table of Contents
qc_xml_to_struct
Reads in an XML file as a MATLAB structure.
xml_struct = qc_xml_to_struct(filename) % Reads in XML file 'filename' as struct
Reads the given XML file into a MATLAB structure, where each node becomes a field in the structure. The XML hierarchy is represented by nested structures. If a node name is invalid as a MATLAB variable name then it will be coerced into a valid variable name in order to create the structure.
filename
A string containing the name of the XML file to read.
xml_struct
The contents of the XML file as a MATLAB structure.
s = qc_xml_to_struct('myfile.xml'); % Reads in the 'myfile.xml' file as a struct 's'
See Also
Copyright ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.
Link to this page.