title: Read XML file Matlab
body: <p>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:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="iso-8859-1"?&gt;
  &lt;CS-info&gt;
  &lt;cs name="abc"&gt;
  &lt;var name="a" unit="s1"/&gt;
  &lt;var name="b" unit="s2"/&gt;
  .
  .
  &lt;/cs&gt;
  .
  .
  .
  &lt;/CS-info&gt;
  </code></pre>
  
  <p>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</p>
  
  <pre><code>output={'a','s1';'b','s2';...};   
  </code></pre>