Hi Joseph,
I use all the $err but the line error refers to the one inside my query not that of the file where the query cannot be applied (more precisely, a node cannot be replaced more than once, but I do not know where this problematic node is in my files)
With “file”, do you mean an XML document? That’s not possible indeed. Maybe you can show us how your query looks like?
Christian
Hi Joseph,
or am I missing something here?
I guess so; Did you check the documentation of the function [1,2]?
Christian
[1] http://docs.basex.org/wiki/XQuery_3.0#Try.2FCatch [2] https://www.w3.org/TR/xquery-31/#id-try-catch