/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/tango-dom.d

  • 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:
 
1
module tango_dom;
 
2
 
 
3
//import std.stdio;
 
4
import tango.io.Stdout;
 
5
import tango.text.xml.Document;
 
6
import tango.text.xml.DocPrinter;
 
7
 
 
8
import tools;
 
9
 
 
10
Document!(char) doc = null;
 
11
 
 
12
extern(C) void initXML(TestData *td) {
 
13
    doc = new Document!(char);
 
14
}
 
15
 
 
16
extern(C) void releaseXML(TestData *td) {
 
17
}
 
18
 
 
19
extern(C) void parseXML(TestData *td, ulong iter) {
 
20
    doc.parse(td.xml[0..td.xmllen]);
 
21
/*
 
22
    auto print = new DocPrinter!(char);
 
23
    Stdout(print(doc)).newline;
 
24
*/
 
25
}
 
26
 
 
27
void main(char[][] args)
 
28
{
 
29
    DTest(args);
 
30
}