summaryrefslogtreecommitdiffstats
path: root/kttsd/filters/xhtml2ssml/main.cpp
blob: 01655ad38d26ec9a97d9a07a92204af57924c071 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

#include <tqapplication.h>
#include <tqfile.h>
#include <tqxml.h>
#include <tqmap.h>
#include <iostream>
#include "xhtml2ssml.h"
#include "xmlelement.h"

int main(int argc, char *argv[]) {
    TQApplication a(argc, argv);
    TQFile f("demonstration.html");
    TQXmlInputSource input(&f);
    TQXmlSimpleReader reader;
    XHTMLToSSMLParser *parser = new XHTMLToSSMLParser();
    reader.setContentHandler(parser);
    reader.parse(input);
    std::cout << parser->convertedText() << "\n";
    delete parser;
    return 0;
}