Adding lines in the middle of the file using shell script

I have an xml file where I need to insert a few lines at random places. I am trying to use sed/awk but running into some issues. Here’s what I am trying to do. <?xml version=”1.0″ encoding=”UTF-8″ standalone=”yes”?> <Manager name=”Manager1″ exportDate=”2020-01-13-05:00″ comment=” configuration from 0.0.0.0″> <ChannelSet> <ChannelEntry> <ChannelAttributesEntry name=”/Pub/Sub/commands” TTL=”0″ capacity=”0″ EID=”15″ clusterWide=”true” jmsEngine=”true” mergeEngine=”false”…

Details