[XQZone General] Re: How to pass Node as a parameter through XDBC?

Michael Blakeley michael.blakeley at marklogic.com
Thu Aug 11 12:07:47 PDT 2005

> Juvvadi, Venugopal (ELS) wrote:
>>> I am assuming that I can specify node as an external parameter in XQuery 
>>> but I am not sure whether Mark Logic supports this or not.
>>> Mark Logic XDBC Statement interface does not provide any method to pass 
>>> Node as a parameter to XQuery unless I am missing something. Is there a 
>>> work around for this?

The usual technique is to pass in the serialized node as a string, then
use xdmp:unquote() to parse it into an element again:

define variable $xml-string as xs:string external
define variable $element as element() { xdmp:unquote($xml-string) }


-- Mike

More information about the General mailing list