Read XML file Matlab



I want to extract the information from XML file. i tried the example from the Mathworks but it didn't work. Here is the sample information from file:



<?xml version="1.0" encoding="iso-8859-1"?>
<CS-info>
<cs name="abc">
<var name="a" unit="s1">
<var name="b" unit="s2">
.
.
<cs>
.
.
.
</CS-info>


when the "cs name" is selected the corresponding variable name and unit within this node should be extracted as cell array. Does any one has solution?? The expected output is



output={'a','s1';'b','s2';...};

No comments:

Post a Comment