This is my example SQL Server XML
DECLARE @abc varchar(max),@Settingsxml XML,@DoesDefExist varchar(10)
SELECT @Settingsxml='<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib">
<sys:Int32 x:Key="abc">1200</sys:Int32>
<sys:Int32 x:Key="xyz">300</sys:Int32>
<sys:Int32 x:Key="ghi">300</sys:Int32>
<sys:String x:Key="def">Forgot your login or password? Please contact the IT Dept.</sys:String>
</ResourceDictionary>'
I would like to add the node <sys:Int32 x:Key="def">300</sys:Int32> after the Key="abc" element