/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
32
using System;
using System.IO;
using System.Xml;

using XMLBench;

namespace XMLBench {
 public class MonoBench : XMLBench {
    override public void ParseXML(Stream xml, int iters, int iter) {
        XmlTextReader reader = new XmlTextReader(xml);
	while (!reader.EOF) {
	    reader.Read ();
	    //Console.WriteLine(reader.Name);
	    if (reader.HasAttributes) {
		    // Will automatically go to first attribute if we are
		    // on element node
		while (reader.MoveToNextAttribute()) {
//		    Console.WriteLine(" {0}={1}", reader.Name, reader.Value);
		}
		reader.MoveToElement();
	    }
	}
    }
 }
 
 public class Mono {
    public static void Main(string[] args) {
	XMLBench bench = new MonoBench();
	bench.Bench(args);
    }
 }
}