I have a file called abc.xml
abc.xml
<Engine name="private" defaultHost="localhost">
<Model name="qwerty"/>
<Host name="localhost" />
</Engine>
I would like to add subtag in Host tag so that my modified abc.xml will look like as below.
<Engine name="private" defaultHost="localhost">
<Model name="qwerty"/>
<Host name="localhost" company="jaguar" >
<Partner name="xxx" />
<Partner name="yyy" />
</Host>
</Engine>
How to achieve above changes using SED or awk command?