I am new to Xquery. I am working on something where I need to insert a new XML element into existing XML.
Ex:
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
The above xml needs to be updated by adding a new Element address.
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
<address>Address</address>
</note>
This needs to be done using XQuery.
I refered to this stackoverflow link
Please Advise.