title: How can I convert XML attributes to Excel?
body: <p>I need to see the XML attributes because i have to modify the translation name where type="unfinished".
  If i remove the 'type' attribute, the program is working perfect.</p>
  
  <p>Does anyone know how should i modify this code?</p>
  
  <pre><code>            xlApp = new Microsoft.Office.Interop.Excel.Application();
              xlWorkBook = xlApp.Workbooks.Add(misValue);
              xlWorkSheet = (Excel.Worksheet)xlWorkBook.Worksheets.get_Item(1);
  
              xmlFile = XmlReader.Create("original.xml", new XmlReaderSettings());
              ds.ReadXml(xmlFile);
              if (xlApp == null)
              {
                  MessageBox.Show("Excel is not properly installed!!");
                  return;
              }
              else
              { 
                  for (i = 0; i &lt;= ds.Tables[0].Rows.Count - 1; i++)
                  {
                      for (j = 0; j &lt;= ds.Tables[0].Columns.Count - 1; j++)
                      {
                          xlWorkSheet.Cells[i + 1, j + 1] = ds.Tables[0].Rows[i].ItemArray[j].ToString();
  
                      }
                  }
  
              xlWorkBook.SaveAs("original2.xlsx");
              xlWorkBook.Close(true, misValue, misValue);
              xlApp.Quit();
  
              releaseObject(xlApp);
              releaseObject(xlWorkBook);
              releaseObject(xlWorkSheet);
  
              MessageBox.Show("Conversion Completed !! ");
  
              }
  </code></pre>
  
  <p>This is a part of the XML file:</p>
  
  <pre><code> &lt;message&gt;
        &lt;source&gt;Alarms and conditions&lt;/source&gt;
        &lt;translation type="unfinished"&gt;Alarms and conditions&lt;/translation&gt;
      &lt;/message&gt;
  
      &lt;message&gt;
        &lt;source&gt;All other aggregates&lt;/source&gt;
        &lt;translation type="unfinished"&gt;All other aggregates&lt;/translation&gt;
      &lt;/message&gt;
  </code></pre>