/xmlbench/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/xmlbench/trunk
1 by Suren A. Chilingaryan
Initial import
1
#include <stdio.h>
2
#include <sys/time.h>
3
#include <sablot.h>
4
5
#include "tools.h"
6
7
SablotSituation parser;
8
SDOM_Document dom;
9
10
void initXML(struct TestData *td) {
11
    SablotCreateSituation(&parser);
12
}
13
14
void releaseXML(struct TestData *td) {
15
    SablotDestroySituation(parser);
16
}
17
18
19
void parseXML(struct TestData *td, unsigned long iter) {
20
    if (SablotParseBuffer(parser,td->xml,&dom)) {
21
	printf("Error parsing document!\n");
22
	exit(1);
23
    }
24
25
    SablotDestroyDocument(parser,dom);
26
}
27
28
29
int main(int argc, char *argv[]) {
30
    return Test(argc,argv);
31
}