You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
527 B
23 lines
527 B
|
|
#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;
|
|
}
|
|
|