[bdbxml] Passing a list to XmlQueryContext::setVariableValue

John Ralls <jralls-qrp8yrQym94Q64ZEkIOog/u6G/[email protected]> Tue, 23 Aug 2005 16:48:33 -0700
Newsgroups gmane.comp.db.dbxml.general
Message-ID <[email protected]>
If, from within the dbxml shell, I declare a variable like so:
declare variable $dtToGet as xs:string* := ('Objective', 'Search');
I can then use that variable in a general equality [local-name() =  
$dtToGet] and it works just fine.
I want to do the same thing in C++.  I naively tried to pass the list  
as a string:
context.setVariableValue("dtToGet", "('Objective', 'Search')");
The query doesn't work.
(If I pass a single arg to it, eg setVariableValue("dtToGet",  
"Objective"), it does work.)

Is there a way to construct an XmlValue that will get turned into a  
list for submission to XQuery?

Regards,
John Ralls



------------------------------------------
To remove yourself from this list, send an
email to [email protected]