problem using std.xml

boyd gaboonviper at gmx.net
Fri May 2 00:34:00 PDT 2008


I've been trying to work with the D2 xml module. It compiles fine, but  
when I run it I get an access violation. Am I doing something wrong?

module main;

import std.stdio;
import std.file;
import std.xml;

int main(){
     string s = cast(string)std.file.read("widget.xml");

     check(s);
     auto doc = new Document(s);
     writefln(doc);

     return 0;
}

Cheers,
Boyd


More information about the Digitalmars-d-learn mailing list