What is the type of xValue? It looks like that may be part of the problem from the error message. (Though I’m not intimately familiar with the .Net class hierarchy so I could be wrong.)
One of the more general ways I’ve seen nodes passed into XCC is by using an xs:string and then unquoting it. (Obligatory MarkMail Link) http://markmail.org/message/xhan3oux27xiwxys Hope this helps. -fs From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eoin MacDonncha Sent: Friday, June 13, 2008 9:22 AM To: [email protected] Subject: [MarkLogic Dev General] Re: Pass a Node datatype from .Net usingXCC API to Marklogic XDBC service 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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
