Javadoc
Binds a value to the given external variable or the context item.
If the value represents a well-formed XML document, it will be parsed
and results in a document node.
The kind of the input type must be null
,
XQITEMKIND_DOCUMENT_ELEMENT
, or
XQITEMKIND_DOCUMENT_SCHEMA_ELEMENT
.
The value is converted into an instance of the specified type according
to the rules defined in 14.3 Mapping a Java XML document to an
XQuery document node, XQuery API for Java (XQJ) 1.0.
If the conversion fails, or if there is a mismatch between the static
and dynamic types, an XQException
is raised either by this
method, or during query evaluation. If the value is not well formed,
or if a kind of the input type other than the values list above is
specified, behavior is implementation defined and may raise an exception.