/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 xsl/intel-dom.cpp

  • Committer: Suren A. Chilingaryan
  • Date: 2009-09-23 17:13:04 UTC
  • Revision ID: csa@dside.dyndns.org-20090923171304-osvtr4zqb29h11kd
Intel, Tango, Phobos, and RapidXML parsers; Memory benchmark scripts

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
    domfactory = DOMImplementationFactory::newInstance();
51
51
    domimpl = domfactory->getDOMImplementation();
52
52
    parser = domimpl->createDOMParser();
53
 
    out = new char[outsize+1];
 
53
//    out = new char[outsize+1];
54
54
}
55
55
 
56
56
void initXML_Transformation(struct TestData *td) {
64
64
}
65
65
 
66
66
void releaseXML(struct TestData *td) {
67
 
    delete out;
 
67
//    delete out;
68
68
    
69
69
    templates->releaseTransformer(transformer);
70
70
    factory->releaseTemplates(templates);
89
89
}
90
90
 
91
91
void transformXML(struct TestData *td, unsigned long iter) {
92
 
    Document* doc = NULL;
93
 
 
94
92
    MemoryReader *buffer= MemoryReader::createMemoryReader(td->xml,td->xmllen);
95
93
    StreamSource *ss = new StreamSource(buffer);
96
94
 
107
105
    MemoryWriter::releaseMemoryWriter(output);
108
106
}
109
107
 
110
 
 
111
108
int main(int argc, char *argv[]) {
112
109
    return Test(argc,argv);
113
110
}