我是Xquery的新手。 我正在處理需要在現有XML中插入新XML元素的內容。使用Xquery在現有XML中插入元素作爲子元素
例:
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
上面的XML需要通過添加新元素的地址進行更新。
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
<address>Address</address>
</note>
這需要使用XQuery來完成。
我refered到this stackoverflow link
請指教。