public void process()
    {
        Parser.Events event = Parser.Events.ev_TAG;

        try {
            outXmlFd.write("<mediawiki>");
        } catch (IOException e) {
            e.printStackTrace();
        }

        while (Parser.Events.ev_NONE != event)
        {
            event = this.p.parse();

            switch(event)
            {
                case ev_NONE:
                    break;
                case ev_TAG:
                    this.startTag();
                    break;
                case ev_TEXT_CHAR:
                    this.chars();
                    break;
                case ev_END_TAG:
                    this.stopTag();
                    break;
                case ev_TAG_NO_END:
                    break;
            }
        }

        try {
            this.outXmlFd.write("</mediawiki>");
            outXmlFd.close();
            outTxtFd.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }