[MarkLogic Dev General] Re: Pass a Node datatype from .Net using XCC API to Marklogic XDBC service

Eoin MacDonncha eoin at cuasconsulting.com
Fri Jun 13 06:21:32 PDT 2008


Hello,

I was wondering does anyone have any experience or examples of how an .Net object (or Java, it may help) can be passed to XQuery module using the XCC API.

My code at the mode serializes the .Net object to a string and passes it to XQuery as a ValueType.XS_STRING.

Is it possible to do something like convert the .Net object to an XPathDocument object and pass it as a ValueType.NODE datatype. I've tried this but when I try and set the variable i.e. request.SetNewVariable(xName, xValue); I get an error

"Specified argument was out of the range of valid values.\r\nParameter name: String, org.w3c.dom.Element or InputStream value required to construct element()"

Any ideas would be great.

Eoin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20080613/24ecdae0/attachment.html


More information about the General mailing list