binding String[] as externalVariables s9api
Replies (1)
Please register to reply
Added by Anonymous about 16 years ago
Legacy ID: #5550437 Legacy Poster: julian hall (julian_hall)
Hi, I'm trying to use XqueryEvaluator.setExternalVariable(QName,XDMValue) .. but i'm having issues trying to figure out how to convert a string array to a sequence XDMValue. Can't find the right constructors etc.. to add to some sort of collection of XdmAtomicValues any help would be great. thanks.
Legacy ID: #5550767 Legacy Poster: Michael Kay (mhkay)
You should be able to use the constructor public XdmValue(Iterable<XdmItem> items) having first converted each String to an XdmAtomicValue using public XdmAtomicValue(String value) { Michael Kay Saxonica
Please register to reply