I have a table in which there is a column named "ServiceConfig" with datatype xml.
I have a record with xml like below :
<Config>
<services>
<service name="pro" />
<service name="postdata" />
</services>
</Config>
Now, I want to replace <service name="pro" /> with <service name="pro" username="u" password="p"/>. So the resultant XML will be
<Config>
<services>
<service name="pro" username="u" password="p"/>
<service name="postdata" />
</services>
</Config>
How do I achieve it?