Hi All,
I have a XML file which is looks like as below. <<please see the attachment >>
<?xml version="1.0" encoding="UTF-8"?>
<esites>
<esite>
<name>XXX.com</name>
<storeId>10001</storeId>
<module>
<name>InventoryVisibility</name>
<active>
<activeStatus>true</activeStatus>
<sku_display>true</sku_display>
<cart>true</cart>
<order_review>true</order_review>
<process_order>true</process_order>
</active>
<standAlone>false</standAlone>
<timeout>120</timeout>
<codec>
</codec>
<transport>
</transport>
<throttle>
<throttlestatus>True</throttlestatus>
<throttlelimit>18</throttlelimit>
</throttle>
</module>
Need shell script where i need find the word �InventoryVisibility� in the XML file [blue in color ], once the word[inventoryVisibility�] is found I want to replace next 7 lines [red in color] with the below highlighted text.
<active>
<activeStatus>False</activeStatus>
<sku_display> False </sku_display>
<cart> False </cart>
<order_review> False </order_review>
<process_order> False </process_order>
</active>
your help is appreciated. Thanks in advance.