Convenience method that creates a new XdmVariable, binds it to this Request and then returns the new XdmVariable. This method is equivalent to:
XdmVariable temp = ValueFactory.newVariable (
ValueFactory.newXName (null, localname),
ValueFactory.newValue (type, value));
request.setVariable (temp);
return temp;
The newly construct XdmVariable instance.
Request Interface | Marklogic.Xcc Namespace | Request.SetNewVariable Overload List