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

#include <qapplication.h>
#include <qfile.h>
#include <qxml.h>
#include <qmap.h>
#include <iostream>
#include "xhtml2ssml.h"
#include "xmlelement.h"

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