//reset the stream, as we need to reuse for string parsing
is.reset();
final StringValue str = parseAsString(is, encoding);
if(str != null) {
result = new SequenceImpl<StringValue>(new StringTypedValue(str));
}
} catch(final IOException ioe) {
throw new RestXqServiceException(RestXqErrorCodes.RQDY0014, ioe);
}
}