I have 2 XML files -
File1.xml
<Fruits>
<F>Apple</F>
<F>Pineapple</F>
<F>Orange</F>
<F>Banana</F>
</Fruits>
File2.xml
<Fruits>
<F>Grapes</F>
<F>Peach</F>
<F>Watermelon</F>
<F>Chickoo</F>
</Fruits>
I want to update/insert the File1.xml with the data from File2.xml so that I have File1.xml as -
File1.xml
<Fruits>
<F>Apple</F>
<F>Pineapple</F>
<F>Orange</F>
<F>Banana</F>
<F>Grapes</F>
<F>Peach</F>
<F>Watermelon</F>
<F>Chickoo</F>
</Fruits>
How to do this using XQuery/XQuery Update? I am using XML Database BaseX.