/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/expat-arabica-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 <string>
 
4
#include <sstream>
 
5
#include <DOM/SAX2DOM/SAX2DOM.hpp>
 
6
#include <SAX/InputSource.hpp>
 
7
 
 
8
#include "tools.h"
 
9
 
 
10
void initXML(struct TestData *td) {
 
11
}
 
12
 
 
13
void releaseXML(struct TestData *td) {
 
14
}
 
15
 
 
16
/* Drops core with Sep02, Jan03 versions */
 
17
void parseXML(struct TestData *td, unsigned long iter) {
 
18
    Arabica::SAX2DOM::Parser<std::string> parser;    
 
19
    std::istringstream strm(td->xml);
 
20
    Arabica::SAX::InputSource<std::string> is(strm);
 
21
    parser.parse(is);
 
22
}
 
23
 
 
24
 
 
25
int main(int argc, char *argv[]) {
 
26
    return Test(argc,argv);
 
27
}