Hi
I am useless when it comes to xml.
I have multiple computer names in groups. (About 20 groups and each group contains 12 computer names all in one xml file.
(defined as <name>Computer1</name>)
In total there are 300 computer names in an existing xml file. How can I rename each computer name iteratively in the xml file?
Example:
Computer1
Computer2
Computer3 (All the way to 300)
Only the <name>Computer1</name> node should be renamed. Any help would be appreciated.![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Here is an example of the xml file:
I am useless when it comes to xml.
I have multiple computer names in groups. (About 20 groups and each group contains 12 computer names all in one xml file.
(defined as <name>Computer1</name>)
In total there are 300 computer names in an existing xml file. How can I rename each computer name iteratively in the xml file?
Example:
Computer1
Computer2
Computer3 (All the way to 300)
Only the <name>Computer1</name> node should be renamed. Any help would be appreciated.
Here is an example of the xml file:
VB.NET:
<?xml version="1.0" encoding="utf-8"?>
<RDCMan schemaVersion="1">
<version>2.2</version>
<dfile>
<properties>
<name>TEST</name>
<expanded>True</expanded>
<comment />
<logonCredentials inherit="FromParent" />
<connectionSettings inherit="FromParent" />
<gatewaySettings inherit="FromParent" />
<remoteDesktop inherit="FromParent" />
<localResources inherit="FromParent" />
<securitySettings inherit="FromParent" />
<displaySettings inherit="FromParent" />
</properties>
<group>
<properties>
<name>Group1</name>
<expanded>True</expanded>
<comment />
<logonCredentials inherit="FromParent" />
<connectionSettings inherit="FromParent" />
<gatewaySettings inherit="FromParent" />
<remoteDesktop inherit="FromParent" />
<localResources inherit="FromParent" />
<securitySettings inherit="FromParent" />
<displaySettings inherit="FromParent" />
</properties>
<server>
<name>Computer1</name>
<displayName>Computer1</displayName>
<comment />
<logonCredentials inherit="None">
<userName>User1</userName>
<domain>DOMAIN</domain>
<password storeAsClearText="True">Password</password>
</logonCredentials>
<connectionSettings inherit="FromParent" />
<gatewaySettings inherit="FromParent" />
<remoteDesktop inherit="FromParent" />
<localResources inherit="FromParent" />
<securitySettings inherit="FromParent" />
<displaySettings inherit="FromParent" />
</server>
<server>
<name>Computer2</name>
<displayName>Computer2</displayName>
<comment />
<logonCredentials inherit="None">
<userName>User2</userName>
<domain>DOMAIN</domain>
<password storeAsClearText="True">Password</password>
</logonCredentials>
<connectionSettings inherit="None">
<connectToConsole>True</connectToConsole>
<startProgram />
<workingDir />
<port>3389</port>
</connectionSettings>
<gatewaySettings inherit="FromParent" />
<remoteDesktop inherit="FromParent" />
<localResources inherit="FromParent" />
<securitySettings inherit="FromParent" />
<displaySettings inherit="FromParent" />
</server>