static void translateXML() throws Exception {
        BufferedReader jin = new BufferedReader(new FileReader("37.xml"));
        FileWriter citeSeer = new FileWriter("citeSeer.txt");
        FileWriter assistant = new FileWriter("assistant.txt");
        String line, lineMark, lineInfo, lines = "";
        int count = 0, position1, position2, position3;

        while ((line = jin.readLine()) != null) {
            position1 = line.indexOf('<');
            position2 = line.indexOf('>');
            lineMark=line.substring(position1 + 1, position2);
            //System.out.println(lineMark);

            if (isAKeyWord(lineMark)) {
                lineInfo = line.substring(position2 + 1, line.length());
                position3 = lineInfo.indexOf('<');
                while (position3 < 0) {
                    lineInfo += jin.readLine();
                    position3 = lineInfo.indexOf('<');
                }
                lineInfo = lineInfo.substring(0, position3);
                lines += lineInfo+" ";
            } else if (isASopWord(lineMark)) {
                if (!lines.equals("")) toToken(++count, lines, citeSeer, assistant);
                lines = "";
            }
        }

        System.out.println("\nTotal books processed:\t" + count);
        jin.close();
    }