### XmlResults.size |

`

###

    import com.sleepycat.dbxml.*;

    public int size()
        throws XmlException;

### Description: XmlResults.size

If a query was processed with eager evaluation, a call to the XmlResults.size method returns the number of values in the result set. If the query was processed with lazy evaluation, a call to XmlResults.size throws an exception.

Returns the number of values in the result set.

### Throws

The XmlResults.size method may fail and throw XmlException, encapsulating one of the following non-zero errors:

LAZY_EVALUATION
  The method can only be called on eagerly evaluated result sets.

### Class

XmlContainer, XmlDocument, XmlException, XmlIndexSpecification, XmlQueryContext, XmlQueryExpression, XmlResults, XmlUpdateContext, XmlValue`

Copyright (c) 1996-2003 Sleepycat Software, Inc. - All rights reserved.