Project

Profile

Help

binding String[] as externalVariables s9api

Added by Anonymous over 15 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.


Replies (1)

RE: binding String[] as externalVariables s9api - Added by Anonymous over 15 years ago

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

    (1-1/1)

    Please register to reply