/xmlbench/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/xmlbench/trunk

« back to all changes in this revision

Viewing changes to parse/qt-dom.cpp

  • Committer: Suren A. Chilingaryan
  • Date: 2009-02-16 09:27:17 UTC
  • Revision ID: csa@dside.dyndns.org-20090216092717-wipyvaaw2srxhgns
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stdio.h>
 
2
#include <sys/time.h>
 
3
#include <qxml.h>
 
4
#include <qwindowdefs.h>
 
5
#include <qstring.h>
 
6
//#include <qcstring.h>
 
7
#include <qdom.h>
 
8
 
 
9
#include "tools.h"
 
10
 
 
11
//QByteArray *qba;
 
12
 
 
13
void initXML(struct TestData *td) {
 
14
//    qba=new QByteArray;
 
15
}
 
16
 
 
17
void releaseXML(struct TestData *td) {
 
18
//    delete qba;
 
19
}
 
20
 
 
21
 
 
22
void parseXML(struct TestData *td, unsigned long iter) {
 
23
    QByteArray qba(td->xml, td->xmllen);
 
24
 
 
25
    const char id[5]="ID1\0";
 
26
    static QDomDocument *parser;
 
27
    
 
28
    parser = new QDomDocument;
 
29
//    qba->setRawData(td->xml,td->xmllen);
 
30
    parser->setContent(qba,FALSE);
 
31
//    qba->resetRawData(td->xml,td->xmllen);
 
32
    delete parser;
 
33
}
 
34
 
 
35
 
 
36
 
 
37
int main(int argc, char *argv[]) {
 
38
    return Test(argc,argv);
 
39
}