how to update a set of node in one xquery ?

how to update a set of node in one xquery ?

here is my code (it don’t work) :

declare namespace ctxO=‘contractX/contractXOrganisation’
update replace input()/ctxO:contractXOrganisation/[not(/*)]
with
ctxO:ocontractX test</ctxO:o>
ctxO:streettest37</ctxO:street>
ctxO:postalCode1700</ctxO:postalCode>
ctxO:postalAddressFribourg</ctxO:postalAddress>

Hi,

it is possible to update a set of nodes within a single query using either a UpdateSequence expression or a FLWUExpr
expression. I do not sufficiently understand your query to
suggest which one to use.

Your query uses an update replace that requires that the
thing to be replaced is just one node and it is again
replaced by a single node.

Please look up both expressions mentioned above in the
XQuery reference guide or explain what you want to do.

Regards,
Juliane.