private static void processResultingXML(String xml, String txt) {
		try {
			XmlHandler myHandler = new XmlHandler(xml);
			List<Tuple<BigInteger,BigInteger>> posSentenceTuples = myHandler.getPosSentences();
			System.out.println("# of Positive Sentences:\n"+posSentenceTuples.size());
			List<Tuple<BigInteger,BigInteger>> negSentenceTuples = myHandler.getNegSentences(posSentenceTuples.size());
			System.out.println("# of Negative Sentences:\n"+negSentenceTuples.size());
			
			System.out.println("Size of Corpus:");
			Corpus corp = new Corpus(txt);
			
			ListIterator<Tuple<BigInteger,BigInteger>> posIter = posSentenceTuples.listIterator();
			ListIterator<Tuple<BigInteger,BigInteger>> negIter = negSentenceTuples.listIterator();
			
			Tuple<BigInteger,BigInteger> currTuple = null;
			Sentence currSen = null;
			
			
			while(posIter.hasNext()) {
				currTuple = posIter.next();
				currSen = corp.getString(currTuple.x.longValue(), currTuple.y.longValue());
				currSen.writeSentenceToDirectory("D:/Studium/Classes_Sem2/Web Mining/Project/Gate", Preprocessor.pos);				
			}
			
			while(negIter.hasNext()) {
				currTuple = negIter.next();
				currSen = corp.getString(currTuple.x.longValue(), currTuple.y.longValue());
				currSen.writeSentenceToDirectory("D:/Studium/Classes_Sem2/Web Mining/Project/Gate", Preprocessor.neg);				
			}
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
	}