Is std.xml seriously broken, or is it me?

Mike via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jul 29 19:58:09 PDT 2017


I'm trying to use std.xml, and I can't get it to work.

I tried the simplest program I could think of:

import std.xml;
import std.stdio;

void main()
{
	auto parser = new DocumentParser("<?xml version=\"1.0\" 
encoding=\"utf-8\"?><device></device>");
     parser.onStartTag["device"] = (ElementParser parser)
     {
         writeln("device");
     };
     parser.parse();	
}

https://dpaste.dzfl.pl/262597d2fda6

I used it before without any trouble.  Is it somehow seriously 
broken?  If not, what am I doing wrong?

Thanks,
Mike


More information about the Digitalmars-d-learn mailing list