Complex XQuery update

Hello,
I would like to know how can I update several nodes at root level.

for example:

Guillermo
Avendano
01/01


How can I do a XQuery to update the elements “firstname” and “birthday”

I was tring with something like this, but it didn’t work:

update for $p in input()/person
where $p/lastname = “Avendano”
do ( replace $p/firstname
with Guille
replace $doc/birthday
with 02-02
)

Thanks and Regards,
Guillermo

It works!

Thanks anyway, I did close/open of TII.

Guillermo

Hola Guillermo, aprovechando que eres hispano-hablante quer

Faltar