private void stopTag()
    {
        String tag = this.p.getLastTag();

        if (0 == "page".compareTo(tag))
        {
            if (true == this.foundTitle)
            {
                try {
                    this.outXmlFd.write("\n  </page>");
                    this.outTxtFd.write("\n");
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }

            this.foundTitle = false;
        }
        if (0 == "title".compareTo(tag))
        {
            this.inTitle = false;

            if (this.isTitleGood())
            {
                this.foundTitle = true;

                try {
                    this.outXmlFd.write("\n  <page>\n    <title>" + currentTitle + "</title>");
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
        if (0 == "text".compareTo(tag))
        {
            this.inText = false;

            if (true == this.foundTitle)
            {
                try {
                    this.outXmlFd.write("\n    </text>");
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }