Folks,
Trying to update the XML file values using 'sed'. bat command not recognized.
CODE:
**@echo off
SET PREFIX=ROOM107-
SET SUFFIX=\Admin
SET /P PCNAME1=Please enter your desired NUMBER:
SET PCNAME=%PREFIX%%PCNAME1%%SUFFIX%
sed -i "s#<UserId>Admin</UserId>#<UserId>%PCNAME%</UserId>#" changexml.xml
pause**
Any other way to update the below XML file using BAT command ?
XML:
<xml>
<Main_group>
<group_1>
<add key="A" value="AMERICA"/>
<add key="B" value="BALL"/>
</group_1>
<group_2>
<add key="A" value="AMERICA"/>
<add key="B" value="BALL"/>
</group_2>
</Main_group>
<SubGroup>
<add key="A" value="AMERICA"/>
<add key="B" value="BALL"/>
</SubGroup>
</xml>
trying to update the value of 'A' and 'B' of the node like below
<SubGroup>
<add key="A" value="USA"/>
<add key="B" value="Basket Ball"/>
</SubGroup>