/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
#include <stdio.h>
#include <sys/time.h>
#include <sablot.h>

#include "tools.h"

SablotSituation parser;
SDOM_Document dom;

void initXML(struct TestData *td) {
    SablotCreateSituation(&parser);
}

void releaseXML(struct TestData *td) {
    SablotDestroySituation(parser);
}


void parseXML(struct TestData *td, unsigned long iter) {
    if (SablotParseBuffer(parser,td->xml,&dom)) {
	printf("Error parsing document!\n");
	exit(1);
    }

    SablotDestroyDocument(parser,dom);
}


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