2 #include <QtGui/QApplication>
3 #include <QtCore/QFile>
7 #include "xhtml2ssml.h"
8 #include "xmlelement.h"
10 int main(int argc
, char *argv
[]) {
11 QApplication
a(argc
, argv
);
12 QFile
f("demonstration.html");
13 QXmlInputSource
input(&f
);
14 QXmlSimpleReader reader
;
15 XHTMLToSSMLParser
*parser
= new XHTMLToSSMLParser();
16 reader
.setContentHandler(parser
);
18 std::cout
<< parser
->convertedText() << "\n";