There is no parsing code in application. This is my problem... I try to parse xml files in a different (probe) application where I didn't manage it
Last try was this:
#include "structureparser.h"
#include <QFile>
#include <QXmlInputSource>
#include <QXmlSimpleReader>
#include <QDebug>
int main( int argc, char **argv ) {
QFile xmlFile
( "contacts.xml" );
StructureParser handler;
reader.setContentHandler( &handler );
reader.parse( source );
#include "structureparser.h"
#include <QFile>
#include <QXmlInputSource>
#include <QXmlSimpleReader>
#include <QDebug>
int main( int argc, char **argv ) {
QFile xmlFile( "contacts.xml" );
QXmlInputSource source( &xmlFile );
StructureParser handler;
QXmlSimpleReader reader;
reader.setContentHandler( &handler );
reader.parse( source );
To copy to clipboard, switch view to plain text mode
I always get an error related to "structureparser.h"... I tried with adding the line QT += xml to .pro file but not helped me Even if I get working this code I cannot continue...
Bookmarks