我有这个 XML:
<?xml version="1.0" encoding="UTF-8"?>
<Employees>
<Index ID="1">
<Name>XYZ</Name>
<EmpID>12345</EmpID>
<Department>OPS</Department>
</Index>
</Employees>
我想继续添加这样的属性:
<?xml version="1.0" encoding="UTF-8"?>
<Employees>
<Index ID="1">
<Name>XYZ</Name>
<EmpID>12345</EmpID>
<Department>OPS</Department>
</Index>
<Index ID="2">
<Name>CFR</Name>
<EmpID>3456</EmpID>
<Department>IT</Department>
</Index>
<Index ID="3">
<Name>VGT</Name>
<EmpID>87654</EmpID>
<Department>RFX</Department>
</Index>
</Employees>
我会将它用于数据库,通过 LINQ 我需要根据需要获取数据