My sample xml value looks like
<food>
<name>Belgian Waffles</name>
<price>$5.95</price>
<description>
Two of our famous Belgian Waffles with plenty of real maple syrup
</description>
<calories>650</calories>
</food>
I need to add this <Shop>KFC</Shop>
into the food tag and my output should looks as
<food>
<name>Belgian Waffles</name>
<price>$5.95</price>
<description>
Two of our famous Belgian Waffles with plenty of real maple syrup
</description>
<calories>650</calories>
<Shop>KFC</Shop>
</food>
I tried UpdateXml but behaves differently. Is it possible with the available xml functions in MySql to do this ?
I am new to MySql. Please help me in figure out this.. Thanks in advance..
UPDATE :
I tried this code
select UpdateXML('<food>
<name>Belgian Waffles</name>
<price>$5.95</price>
<description>
Two of our famous Belgian Waffles with plenty of real maple syrup
</description>
<calories>650</calories>
</food>', '/food/Shop', '<Shop>KFC</Shop>');
and in the second parameter i tried instead '/food/Shop'
only with '/food'
but its not giving the expected results