I can write:
update my_table
set xml = updateXML(xml, '/a/b', '1')
where document_id = 123
Now what if in the same update query I also want to set /a/c to 2 (in addition /a/b to 1)? I am tempted to write:
update my_table
set
xml = updateXML(xml, '/a/b', '1'),
xml = updateXML(xml, '/a/c', '2')
where document_id = 123
But this give me a "ORA-00957: duplicate column name". Any suggestion on how to do this?