The XML module in Phobos

Michel Fortin michel.fortin at michelf.com
Tue Jul 28 08:16:32 PDT 2009


On 2009-07-28 10:09:04 -0400, Andrei Alexandrescu 
<SeeWebsiteForEmail at erdani.org> said:

>>> Yes, I think that will be necessary. Any volunteers? :o)
>>> 
>>> Andrei
>> 
>> There is already a high-performance one in Tango.  There must be some
>> way to avoid duplicating effort.
> 
> Unfortunately I'm not seeing any. Besides, it would be great if phobos' 
> xml would work with ranges.

I started something which could be used as a replacement of std.xml. 
Once it's a little more ready, I could contribute it to Phobos. It 
includes two tokenizer APIs (a templated callback tokenizer and a range 
tokenizer), and one DOM (not really based on the W3C DOM). The goal is 
to support all of XML at the tokenizer level, but skipping the internal 
subset of the doctype in the DOM.

Currently, the range API would be more useful if there was a way to 
switch on the type of an Algebraic.

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/




More information about the Digitalmars-d mailing list