title: Is there a way to Stop or Quit parsing from within a DefaultHandler?
body: <p>Is there a way to call a quit() function on an SAXParser or XMLReader?</p>
  
  <p>The XML document is only updated every day or so, and I only want the full document to be read if the  element has changed.</p>
  
  <p>Within my Default Handler:</p>
  
  <pre><code>@Override
  public void endElement(String uri, String localName, String qName)
  throws SAXException {
  
      if (localName.equals("pubDate")) {
          if (currentValue.equals(mPreviousPubDateValue)) {
                  //exit parsing
          }
      } else {
          //keep on parsing
      }
  
  
  }
  </code></pre>
  
  <p>The XML document is fairly large, and I'd like to be able to just quit it.  DefaultHandler doesn't have any built-ins for stopping the parsing.  I could also pass in a reference to the XMLReader, but it also doesn't have a method for stopping itself.</p>
  
  <p>Thanks!</p>