Hi,

 

I'm attempting to update a node with the following syntax:

 

{xdmp:node-replace($r/searchPath, 

   concat('<searchPath>', fn:replace($r/searchPath/text(), $find, $repl),
'</searchPath>')

)}

 

but get the error:

 

Description: XDMP-ARGTYPE: (err:XPTY0004)
xdmp:node-replace(fn:doc("/db/netvisn/save/i4C3CC6CC7F6C404A943E89FC9DCF77FC
.xml")/*:content/*:lookupInfo/*:searchPath,
"<searchPath>CAMID(&quot;default:u:authid=4001917375&quot;)/folde...") --
arg2 is not of type node()

 

How do I convert the results of the concat() to a node?

 

Thanks,

Gary

 

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to