title: Delphi simple xml parse
body: <p>I need to parse out some values from xml file. The problem is - that I must do it with Delphi =(. 
  the file is quite simple </p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;Items version="1.0"&gt;
    &lt;Item BackupFileName="d:\data.bak"&gt;
      &lt;Rating Rate="TOP"/&gt;
    &lt;/Item&gt;
    &lt;Item BackupFileName="d:\data2.bak"&gt;
      &lt;Rating Rate="OTHER"/&gt;
    &lt;/Item&gt;
    ....
  &lt;/Items&gt;
  </code></pre>
  
  <p>And I just need an array of strings with this filepaths {"d:\data.bak", "d:\data2.bak", ... } 
   I have googled a little and found a solution (as I thought) like</p>
  
  <pre><code> url := 'D:\Backups.xml';
    xml := CreateOleObject('Microsoft.XMLDOM') as IXMLDOMDocument;
    xml.async := False;
    xml.load(url); // or use loadXML to load XML document using a supplied string
    if xml.parseError.errorCode &lt;&gt; 0 then
      raise Exception.Create('XML Load error:' + xml.parseError.reason);
  
    nodes_row := xml.selectNodes('/Items');
    for i := 0 to nodes_row.length - 1 do
    begin
      node := nodes_row.item[i];
      result := node.selectSingleNode('Item').text;
  end;
  </code></pre>
  
  <p>But result seems to be always void. Could you please provide or refer an easy solution for this? </p>