I am having a code where i am using mem:node-replace(). The code is as below-
let $a :=
for $i in $res
let $uri := fn:base-uri($i)
let $doc := fn:doc($uri)
return if(fn:exists($doc) eq fn:true())
then (
(
mem:node-replace($doc//*:NODE1,<NODE1>{doc($id)//*:NODE1}</NODE1>),
mem:node-replace($doc//*:NODE2,<NODE2>{$curr_date}</NODE2>)
)
)
else ()
return $a
I can able to see the value is getting replaced in the LOG but it is not reflecting into the database. How i am supposed to commit/save this node-replace in my database ?
Any Suggestions ?