Article 4VJ76 looking for sed command to replace line into an xml file

looking for sed command to replace line into an xml file

by
vijaytamil2000
from LinuxQuestions.org on (#4VJ76)
I have generated the below line using a script.

<property name="server1">server123<\/property>
<property name="server2">server234<\/property>

Now i want to replace line "server1" in below xml line with to the above line.

<bean name="customerserverconf">
<bean name="cluster1">
<property name="clusterName">MYCLUSTER</property>
<property name="currentSession">true</property>
<property name="server1">{{MYHOST}}</property>
<property name="useStickyServer">false</property>
</bean>latest?d=yIl2AUoC8zA latest?i=litJnVGr4lg:jrynelE5eW0:F7zBnMy latest?i=litJnVGr4lg:jrynelE5eW0:V_sGLiP latest?d=qj6IDK7rITs latest?i=litJnVGr4lg:jrynelE5eW0:gIN9vFwlitJnVGr4lg
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments