我是 C# 和 XML 的新手
如何将Id、name和新值AvailProducts写入CostXML 文件C#?
<root>
<Bathing>
<Id>San100</Id>
<name>Santoor</name>
<AvailProducts>30</AvailProducts>
<Cost>20.00</Cost>
</Bathing>
<Bathing>
<Id>Det123</Id>
<name>Dettol</name>
<AvailProducts>30</AvailProducts>
<Cost>15.00</Cost>
</Bathing>
<Bathing>
<Id>Rex123</Id>
<name>Rexona</name>
<AvailProducts>30</AvailProducts>
<Cost>16.00</Cost>
</Bathing>
</root>