Hi Michael Blakeley,
Thanks a lot for your quick reply.
Regards,
Parthiban.K
On 5/21/08, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Send General mailing list submissions to
> [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://xqzone.com/mailman/listinfo/general
> or, via email, send a message with subject or body 'help' to
> [EMAIL PROTECTED]
>
> You can reach the person managing the list at
> [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of General digest..."
>
>
> Today's Topics:
>
> 1. How to pass parameter ? (Parthiban.K)
> 2. Re: How to pass parameter ? (Michael Blakeley)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 20 May 2008 21:56:43 +0530
> From: Parthiban.K <[EMAIL PROTECTED]>
> Subject: [MarkLogic Dev General] How to pass parameter ?
> To: [email protected]
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> How to pass parameter to in-built xQuery method from java using XCC API ?
>
>
> Thanks in advance.
> --
>
>
>
> Thanks and Regards,
> Parthiban.K
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://xqzone.marklogic.com/pipermail/general/attachments/20080520/327cece7/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Tue, 20 May 2008 10:17:14 -0700
> From: Michael Blakeley <[EMAIL PROTECTED]>
> Subject: Re: [MarkLogic Dev General] How to pass parameter ?
> To: General Mark Logic Developer Discussion
> <[email protected]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Take a closer look at the XCC distribution: it is packed with
> documentation and code examples. Here's one from the docs section
> "Passing Variables With Queries", also available at
> http://developer.marklogic.com/pubs/3.2/javadoc/index.html
>
> Session session = contentSource.newSession("mydatabase");
> Request request = session.newAdhocQuery(
> "define variable $myvar as xs:string external\n" +
> "data($myvar)");
>
> // create Variable "myvar", bind to Request, ignore return value
> request.setNewVariable("myvar", ValueType.XS_STRING,
> "Some string value");
>
> // "$myvar as xs:string" will be defined at query run time
> ResultSequence rs = session.submitRequest(request);
>
> You could use the same technique with a module invoke or spawn.
>
> -- Mike
>
> Parthiban.K wrote:
>> Hi,
>>
>> How to pass parameter to in-built xQuery method from java using XCC API ?
>>
>>
>> Thanks in advance.
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> General mailing list
>> [email protected]
>> http://xqzone.com/mailman/listinfo/general
>
>
>
> ------------------------------
>
> _______________________________________________
> General mailing list
> [email protected]
> http://xqzone.com/mailman/listinfo/general
>
>
> End of General Digest, Vol 47, Issue 16
> ***************************************
>
--
Regards
Parthiban.K
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general