0
Gibt es eine einfache Möglichkeit, die IP-Adressen in der XML-Datei zu ändern?XML lesen/ändern/speichern vb.net
Meine Idee ist, zuerst den "Verbindungsnamen" in einer Listbox und dann die IP-Adresse zu laden. Dann machen Sie 3. Listbox, wo sie die neue IP-Adresse hinzufügen können.
und speichern Sie die neue XML-Datei
<CSD>
<Version>
<Version>2.0.1</Version>
<fileVersion>2.0</fileVersion>
</Version>
<Connections>
<Connection name="Con1">
<Property name="attributes">
<title>Product1</title>
<ipaddress>10.79.44.33</ipaddress>
<ipport>80</ipport>
</Property>
</Connection>
<Connection name="Con2">
<Property name="attributes">
<title>Product2</title>
<ipaddress>10.79.44.34</ipaddress>
<ipport>80</ipport>
</Property>
</Connection>
<Connection name="Con3">
<Property name="attributes">
<title>Productq</title>
<ipaddress>10.79.44.35</ipaddress>
<ipport>80</ipport>
</Property>
</Connection>
</Connections>
</CSD>