Code example for ContentHandler

Methods: endDocument

     * Implements org.xml.sax.ContentHandler.endDocument() 
     * Receive notification of the end of a document. 
    public void endDocument() throws SAXException { 
	// Signal to the DOMBuilder that the document is complete 
	if (!_isIdentity) {
	    // Run the transformation now if we have a reference to a Result object 
	    if (_result != null) {
		try { 
		    _transformer.transform(null, _result);
		catch (TransformerException e) {
		    throw new SAXException(e);
	    // Signal that the internal DOM is built (see 'setResult()'). 
	    _done = true;