title: How to perform Xpath looping on a series of attributes?
body: <p>I am working on extracting parts of a XML file.
  And I need to get the three third values of Data (which are <code>1.25</code>, <code>1.9</code> and <code>2.92</code>, respectively).</p>
  
  <p>The XML file code is as follows:   </p>
  
  <pre><code>&lt;logData&gt;
  &lt;data&gt;499,498.99,1.25,0,1.45,3.67,11.02,187.66,0.29,116.24,0.01,0.05,0.01,0,886.03,1089.99,1.11,14.67,0.29,1.12,1.11&lt;/data&gt;
  &lt;data&gt;500.01,500,1.9,0.01,1.42,9.94,11.32,185.7,0.29,116.24,0.01,0.01,0.01,0,795.19,973.48,1.11,14.67,0.29,0.95,1.11&lt;/data&gt; 
  &lt;data&gt;501.03,501.02,2.92,0.02,1.41,20.46,11.62,184.23,0.29,120,0.01,0.01,0.01,0,796.68,956.25,1.11,14.67,0.29,0.83,1.11&lt;/data&gt;
     &lt;/logData&gt;
  </code></pre>
  
  <p><code>(tokenize(//logData/data,','))[3]</code> returns a wrong message" </p>
  
  <blockquote>
    <p>“Unable to perform XPath operation. A sequence of more than one item
    is not allowed as the first argument of tokenize().”</p>
  </blockquote>
  
  <p>Since Xpath loops automatically, there should be a syntax that allows selecting the first set of data to apply tokenize, then move to the next set, and so one. </p>
  
  <p>Any help would be appreciated!</p>