Code example for SAXException

Methods: printStackTrace

0
		resultChunk = null;
		try { 
			sp.parse(new InputSource(new StringReader(xml)), this);
		}catch(final SAXException se) {
			resultChunk = null;
			se.printStackTrace();
			throw new RuntimeException("SaxE: " + se+"\n"+xml);
		}catch (final IOException ie) {
			resultChunk = null;
			ie.printStackTrace();
			throw new RuntimeException("ioe: " + ie);
		} 
		return resultChunk;
	} 
	 
	public static void parseXMLDocument(String file, PChunkCallback cb) {
 
		//get a factory 
		ParallelCorpusReader pcr = new ParallelCorpusReader(cb);
		final SAXParserFactory spf = SAXParserFactory.newInstance();
		try {