updating multiple nodes in xml with xquery and xdmp:node-replace
- by morja
Hi all,
I wnat to update an XML document in my xml database (Marklogic). I have xml as input and want to replace each node that exists in the target xml.
If a node does not exist it would be great if it gets added, but thats maybe another task.
My XML in the database:
<user>
<username>username</username>
…