Code example for Collection

Methods: clear

0
     * Override this method to clear any state and ready the parser for 
     * a new document. Subclasses should call 
     * <code>super.reset()</code> to clear superclass state. 
     */ 
    protected void reset() { 
        _curResults.clear();
        _curLoader = null;
        _sourceName = null;
        _sourceFile = null;
        _depth = -1;
        _ignore = Integer.MAX_VALUE;
        if (_comments != null)
            _comments.clear();
        clearDeferredMetaData(); 
        setParsing(false); 
    } 
 
    /** 
     * Implement to return the XML schema source for the document. Returns 
     * null by default. May return: 
     * <ul>