我在 XML 文件中有以下数据,我想在网格中显示。我将通过数据表将此数据绑定到网格。我对读取节点并将行添加到数据表感到困惑。我该怎么做 ?
<?xml version="1.0" encoding="utf-8"?>
<Employees>
<Employee>
<ID>1</ID>
<FirstName>Prakash</FirstName>
<LastName>Rangan</LastName>
<Salary>70000</Salary>
</Employee>
<Employee>
<ID>5</ID>
<FirstName>Norah</FirstName>
<LastName>Miller</LastName>
<Salary>21000</Salary>
</Employee>
<Employee>
<ID>17</ID>
<FirstName>Cecil</FirstName>
<LastName>Walker</LastName>
<Salary>60000</Salary>
</Employee>
</Employees>