title: SAX Premature End to a Parse?
body: <p>I'm relatively new to working with XML and am working with some rather large documents using the <code>javax.xml.parsers.SAXParser</code> .</p>
  
  <p>The thing is:  The information I need is near the top of the XML file and I don't <em>need</em> to parse the entire document. -- What is the "best" way to stop parsing a file when the relevant information has been identified?</p>
  
  <p>(So far the only way I can think of is to throw an exception.)</p>