how to use xmlread in a very simple example
19 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Bruce McWhorter
el 12 de Jul. de 2018
I would like a very simple example for reading numeric data from a xml file using xml read. I would like the xml file to be something like:
<!-- This is a simple xml file containing data -->
<file>
<data>
<variable1>100</variable1>
<variable2>200</variable2>
</data>
</file>
4 comentarios
Adam Danz
el 12 de Jul. de 2018
doc xmlread
shows simple examples that you're requesting.
Respuesta aceptada
Guillaume
el 12 de Jul. de 2018
I would recommend you use xml2struct to save you having to navigate the xml DOM returned by xmlread.
xml = xml2struct(yourxmlfile);
xml.file.data.variable1
xml.file.data.variable2
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!