So ändern Sie eine vorhandene XML-Datei mit XmlDocument und XmlNode in C #
Ich habe bereits implementiert, um die folgende XML-Datei mit @ zu erstelle XmlTextWriter bei der Anwendungsinitialisierung.
Und ich weiß nicht, wie ich den childNode-ID-Wert mit @ aktualisieren ka XmlDocument & XmlNode.
Ist eine Eigenschaft zum Aktualisieren des ID-Werts vorhanden? Ich habe es versucht InnerText aber scheiterte. Danke dir
<?xml version="1.0" encod,ing="UTF-8"?>
<Equipment xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<License licenseId="" licensePath=""/>
<DataCollections>
<GroupAIDs>
<AID id="100">
<Variable id="200"/>
<Variable id="201"/>
</AID>
<AID id="">
<Variable id="205"/>
</AID>
<AID id="102"/>
</GroupAIDs>
<GroupBIDs>
<BID id="2000">
<AID id="100"/>
</BID>
<BID id="2001">
<AID id="101"/>
<AID id="102"/>
</BID>
</GroupBIDs>
<GroupCIDs>
<BID id="8"/>
<BID id="9"/>
<BID id="10"/>
</GroupCIDs>
</DataCollections>
</Equipment>