/xmlbench/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/xmlbench/trunk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <stdio.h>
#include <sys/time.h>
#include <gdome.h>

#include "tools.h"

GdomeDOMImplementation *di;

void initXML(struct TestData *td) {
    di=gdome_di_mkref();
}

void releaseXML(struct TestData *td) {
    GdomeException exc;
    gdome_di_unref(di,&exc);
}

void parseXML(struct TestData *td, unsigned long iter) {
    GdomeDocument *doc;
    GdomeException exc;

    doc = gdome_di_createDocFromMemory(di,td->xml,GDOME_LOAD_PARSING,&exc);
    if (!doc) {
        printf("Error parsing document: %d!\n",exc);
        exit(0);
    }

    gdome_di_freeDoc(di,doc,&exc);
}

int main(int argc, char *argv[]) {
    return Test(argc,argv);
}